mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	Fixed snd_pcm_set_params() error code
This commit is contained in:
		
							parent
							
								
									937f396663
								
							
						
					
					
						commit
						59b598fac0
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -7145,7 +7145,7 @@ int snd_pcm_set_params(snd_pcm_t *pcm,
 | 
			
		|||
        	period_time = latency / 4;
 | 
			
		||||
        	err = INTERNAL(snd_pcm_hw_params_set_period_time_near)(pcm, params, &period_time, NULL);
 | 
			
		||||
        	if (err < 0) {
 | 
			
		||||
        		SNDERR("Unable to set period time %i for %s: %s", s, period_time, snd_strerror(err));
 | 
			
		||||
        		SNDERR("Unable to set period time %i for %s: %s", period_time, s, snd_strerror(err));
 | 
			
		||||
        		return err;
 | 
			
		||||
        	}
 | 
			
		||||
                err = INTERNAL(snd_pcm_hw_params_get_period_size)(params, &period_size, NULL);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue