mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	modargs: Fix pa_modargs_get_sample_rate() if no "rate" is present in the modargs
see http://lists.freedesktop.org/archives/pulseaudio-discuss/2013-December/019471.html Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net> Reported-by: "poljar (Damir Jelić)" <poljarinho@gmail.com>
This commit is contained in:
		
							parent
							
								
									9833bb460c
								
							
						
					
					
						commit
						ff06e24eb5
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -369,6 +369,7 @@ int pa_modargs_get_sample_rate(pa_modargs *ma, uint32_t *rate) {
 | 
			
		|||
 | 
			
		||||
    pa_assert(rate);
 | 
			
		||||
 | 
			
		||||
    rate_local = *rate;
 | 
			
		||||
    if ((pa_modargs_get_value_u32(ma, "rate", &rate_local)) < 0 ||
 | 
			
		||||
        rate_local <= 0 ||
 | 
			
		||||
        rate_local > PA_RATE_MAX)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue