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:
Tanu Kaskinen 2020-02-05 10:04:23 +02:00
parent bdc6b6ff78
commit acc8052ed8
2 changed files with 2 additions and 2 deletions

View 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.", 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); i->index, pa_strnull(pa_proplist_gets(i->proplist, PA_PROP_APPLICATION_NAME)), core->default_sink->name);
else 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); 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); pa_sink_input_move_to(i, core->default_sink, false);

View 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.", 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); o->index, pa_strnull(pa_proplist_gets(o->proplist, PA_PROP_APPLICATION_NAME)), core->default_source->name);
else 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); 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); pa_source_output_move_to(o, core->default_source, false);