mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	filters: Fix the master source/sink when autoloaded
When autoloaded, it is expected that module-filter-apply (or whatever is loading us) will take care of applying the filter on the correct sink/source master. Instead of adding complexity by tracking what is currently being filtered, we just disallow filtering anything except the original master sink/source and let module-filter-apply or whatever is loading us deal with dynamic sink/source changes.
This commit is contained in:
		
							parent
							
								
									ac3d66f978
								
							
						
					
					
						commit
						aaf0f5bd6e
					
				
					 2 changed files with 5 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1055,6 +1055,9 @@ static pa_bool_t sink_input_may_move_to_cb(pa_sink_input *i, pa_sink *dest) {
 | 
			
		|||
    pa_sink_input_assert_ref(i);
 | 
			
		||||
    pa_assert_se(u = i->userdata);
 | 
			
		||||
 | 
			
		||||
    if (u->autoloaded)
 | 
			
		||||
        return FALSE;
 | 
			
		||||
 | 
			
		||||
    return u->sink != dest;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue