mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	sink: move the streams to the default_sink when the sink is unlinked
When a sink is unlinked, all streams of this sink are moved to default_sink, this action is implemented in the core rather than modules now. Signed-off-by: Hui Wang <hui.wang@canonical.com>
This commit is contained in:
		
							parent
							
								
									60d948618e
								
							
						
					
					
						commit
						43e3a7f3c3
					
				
					 6 changed files with 21 additions and 189 deletions
				
			
		| 
						 | 
				
			
			@ -352,7 +352,7 @@ void pa_core_update_default_sink(pa_core *core) {
 | 
			
		|||
 | 
			
		||||
    /* try to move the streams from old_default_sink to the new default_sink conditionally */
 | 
			
		||||
    if (old_default_sink)
 | 
			
		||||
	pa_sink_move_streams_to_default_sink(core, old_default_sink);
 | 
			
		||||
        pa_sink_move_streams_to_default_sink(core, old_default_sink, true);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* a  < b  ->  return -1
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue