sink, source: Fix inaccurate log message
authorTanu Kaskinen <tanuk@iki.fi>
Wed, 5 Feb 2020 08:04:23 +0000 (10:04 +0200)
committerTanu Kaskinen <tanuk@iki.fi>
Wed, 5 Feb 2020 08:04:23 +0000 (10:04 +0200)
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.

src/pulsecore/sink.c
src/pulsecore/source.c

index 53c2a5e..11c3849 100644 (file)
@@ -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);
index 21a73f4..1cb83f9 100644 (file)
@@ -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);