mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	Better diagnostic for config load failure
This commit is contained in:
		
							parent
							
								
									751c88c0e6
								
							
						
					
					
						commit
						c76af03f4e
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -1066,6 +1066,7 @@ int snd_config_update()
 | 
			
		|||
		err = snd_config_load(snd_config, in);
 | 
			
		||||
		snd_input_close(in);
 | 
			
		||||
		if (err < 0) {
 | 
			
		||||
			SNDERR(SYS_ASOUNDRC " may be old or corrupted: consider to remove or fix it");
 | 
			
		||||
			snd_config = NULL;
 | 
			
		||||
			return err;
 | 
			
		||||
		}
 | 
			
		||||
| 
						 | 
				
			
			@ -1078,6 +1079,7 @@ int snd_config_update()
 | 
			
		|||
		err = snd_config_load(snd_config, in);
 | 
			
		||||
		snd_input_close(in);
 | 
			
		||||
		if (err < 0) {
 | 
			
		||||
			SNDERR("%s may be old or corrupted: consider to remove or fix it", usr_asoundrc);
 | 
			
		||||
			snd_config = NULL;
 | 
			
		||||
			return err;
 | 
			
		||||
		}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue