mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	sink, source: Fix inaccurate log message
The stream moving is done also when the active port changes to unavailable, not only when the device is unlinked like the old log message suggests.
This commit is contained in:
		
							parent
							
								
									bdc6b6ff78
								
							
						
					
					
						commit
						acc8052ed8
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -3974,7 +3974,7 @@ void pa_sink_move_streams_to_default_sink(pa_core *core, pa_sink *old_sink, bool
 | 
			
		|||
            pa_log_info("The sink input %u \"%s\" is moving to %s due to change of the default sink.",
 | 
			
		||||
                        i->index, pa_strnull(pa_proplist_gets(i->proplist, PA_PROP_APPLICATION_NAME)), core->default_sink->name);
 | 
			
		||||
        else
 | 
			
		||||
            pa_log_info("The sink input %u \"%s\" is moving to %s due to unlink of a sink.",
 | 
			
		||||
            pa_log_info("The sink input %u \"%s\" is moving to %s, because the old sink became unavailable.",
 | 
			
		||||
                        i->index, pa_strnull(pa_proplist_gets(i->proplist, PA_PROP_APPLICATION_NAME)), core->default_sink->name);
 | 
			
		||||
 | 
			
		||||
        pa_sink_input_move_to(i, core->default_sink, false);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -3030,7 +3030,7 @@ void pa_source_move_streams_to_default_source(pa_core *core, pa_source *old_sour
 | 
			
		|||
            pa_log_info("The source output %u \"%s\" is moving to %s due to change of the default source.",
 | 
			
		||||
                        o->index, pa_strnull(pa_proplist_gets(o->proplist, PA_PROP_APPLICATION_NAME)), core->default_source->name);
 | 
			
		||||
        else
 | 
			
		||||
            pa_log_info("The source output %u \"%s\" is moving to %s due to unlink of a source.",
 | 
			
		||||
            pa_log_info("The source output %u \"%s\" is moving to %s, because the old source became unavailable.",
 | 
			
		||||
                        o->index, pa_strnull(pa_proplist_gets(o->proplist, PA_PROP_APPLICATION_NAME)), core->default_source->name);
 | 
			
		||||
 | 
			
		||||
        pa_source_output_move_to(o, core->default_source, false);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue