mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	device-manager: improve logging about non-existing data
Previously a missing key would cause this kind of log output: D: [pulseaudio] module-device-manager.c: Database contains invalid data for key: sink:auto_null (probably pre-v1.0 data) D: [pulseaudio] module-device-manager.c: Attempting to load legacy (pre-v1.0) data for key: sink:auto_null D: [pulseaudio] module-device-manager.c: Size does not match. D: [pulseaudio] module-device-manager.c: Unable to load legacy (pre-v1.0) data for key: sink:auto_null. Ignoring. That is now replaced with D: [pulseaudio] module-device-manager.c: Database contains no data for key: sink:auto_null
This commit is contained in:
		
							parent
							
								
									a1191874fe
								
							
						
					
					
						commit
						323dc5bfb9
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -292,8 +292,10 @@ static struct entry* entry_read(struct userdata *u, const char *name) {
 | 
			
		|||
 | 
			
		||||
    pa_zero(data);
 | 
			
		||||
 | 
			
		||||
    if (!pa_database_get(u->database, &key, &data))
 | 
			
		||||
        goto fail;
 | 
			
		||||
    if (!pa_database_get(u->database, &key, &data)) {
 | 
			
		||||
        pa_log_debug("Database contains no data for key: %s", name);
 | 
			
		||||
        return NULL;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    t = pa_tagstruct_new_fixed(data.data, data.size);
 | 
			
		||||
    e = entry_new();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue