mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
module-switch-on-connect: Don't switch unlinked sink input and source outputs
Unlinked streams can not be moved, so don't try. BugLink: http://bugs.launchpad.net/bugs/837386 Signed-off-by: David Henningsson <david.henningsson@canonical.com>
This commit is contained in:
parent
fb107fc770
commit
c7bba2464d
1 changed files with 2 additions and 2 deletions
|
|
@ -87,7 +87,7 @@ static pa_hook_result_t sink_put_hook_callback(pa_core *c, pa_sink *sink, void*
|
|||
}
|
||||
|
||||
PA_IDXSET_FOREACH(i, def->inputs, idx) {
|
||||
if (i->save_sink)
|
||||
if (i->save_sink || !PA_SINK_INPUT_IS_LINKED(i->state))
|
||||
continue;
|
||||
|
||||
if (pa_sink_input_move_to(i, sink, FALSE) < 0)
|
||||
|
|
@ -140,7 +140,7 @@ static pa_hook_result_t source_put_hook_callback(pa_core *c, pa_source *source,
|
|||
}
|
||||
|
||||
PA_IDXSET_FOREACH(o, def->outputs, idx) {
|
||||
if (o->save_source)
|
||||
if (o->save_source || !PA_SOURCE_OUTPUT_IS_LINKED(o->state))
|
||||
continue;
|
||||
|
||||
if (pa_source_output_move_to(o, source, FALSE) < 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue