mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	pulse-server: module-combine-sink: remove unnecessary conditional
After dequeueing the buffer, the code immediately checks if it is NULL, and never modifies the variable. Therefore there is no need to check again when the buffer is enqueued.
This commit is contained in:
		
							parent
							
								
									d71dd31dcf
								
							
						
					
					
						commit
						807fa19319
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -166,8 +166,7 @@ static void capture_process(void *d)
 | 
			
		|||
		pw_stream_queue_buffer(data->streams[i].stream, out);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (in != NULL)
 | 
			
		||||
		pw_stream_queue_buffer(data->sink, in);
 | 
			
		||||
	pw_stream_queue_buffer(data->sink, in);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static void check_initialized(struct module_combine_sink_data *data)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue