core: move sink-inputs conditionally when update default_sink
authorHui Wang <hui.wang@canonical.com>
Wed, 16 Jan 2019 02:35:45 +0000 (10:35 +0800)
committerHui Wang <hui.wang@canonical.com>
Wed, 27 Nov 2019 04:09:21 +0000 (12:09 +0800)
commit40d92e9b1ad37f45f555946368eb42c77354819c
tree504a2e0d350dcd648b3b1d830aad45391e4fca3c
parentbc0e72832057c9d2744d95767dff2a48c83082c2
core: move sink-inputs conditionally when update default_sink

When the default sink changes, the streams from the old default sink
should be moved to the new default sink, unless the preferred_sink
string is set to the old default sink and the active port of the old
default sink is not unavailable

Signed-off-by: Hui Wang <hui.wang@canonical.com>
src/modules/module-switch-on-connect.c
src/pulsecore/core.c
src/pulsecore/sink.c
src/pulsecore/sink.h