sink: move the streams to the default_sink when the sink is unlinked
authorHui Wang <hui.wang@canonical.com>
Wed, 16 Jan 2019 07:40:53 +0000 (15:40 +0800)
committerHui Wang <hui.wang@canonical.com>
Wed, 27 Nov 2019 04:26:34 +0000 (12:26 +0800)
commit43e3a7f3c32ef78c69e446aad2c55edd5f1b44b9
treef628519d76364624c8ca3e2826f06326226bdf90
parent60d948618e7299740e7247aef1f10c04a4866147
sink: move the streams to the default_sink when the sink is unlinked

When a sink is unlinked, all streams of this sink are moved to
default_sink, this action is implemented in the core rather than
modules now.

Signed-off-by: Hui Wang <hui.wang@canonical.com>
src/modules/module-rescue-streams.c
src/modules/module-stream-restore.c
src/pulsecore/core.c
src/pulsecore/device-port.c
src/pulsecore/sink.c
src/pulsecore/sink.h