mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	echo-cancel: Use pa_streq instead of strcmp
This commit is contained in:
		
							parent
							
								
									ba69d66c33
								
							
						
					
					
						commit
						af6229cbe1
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1318,9 +1318,9 @@ static void sink_input_mute_changed_cb(pa_sink_input *i) {
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
static pa_echo_canceller_method_t get_ec_method_from_string(const char *method) {
 | 
			
		||||
    if (strcmp(method, "speex") == 0)
 | 
			
		||||
    if (pa_streq(method, "speex"))
 | 
			
		||||
        return PA_ECHO_CANCELLER_SPEEX;
 | 
			
		||||
    else if (strcmp(method, "adrian") == 0)
 | 
			
		||||
    else if (pa_streq(method, "adrian"))
 | 
			
		||||
        return PA_ECHO_CANCELLER_ADRIAN;
 | 
			
		||||
    else
 | 
			
		||||
        return PA_ECHO_CANCELLER_INVALID;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue