Commit acc8052e authored by Tanu Kaskinen's avatar Tanu Kaskinen
Browse files

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.
parent bdc6b6ff
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment