source: move the streams to the default_source when the source unlink
authorHui Wang <hui.wang@canonical.com>
Tue, 10 Dec 2019 08:26:34 +0000 (16:26 +0800)
committerTanu Kaskinen <tanuk@iki.fi>
Sat, 14 Dec 2019 18:40:19 +0000 (18:40 +0000)
commit5e0d5a86822caf56f9d36b1363f007dd45b48c37
treea633ec2128400055db6e168111f13068ea1c1127
parent976a366c9f8cb1962f9ca14cdd70d897b26bb8af
source: move the streams to the default_source when the source unlink

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

And after this change, the module-rescue-streams is not needed, but
for backward compatibility, we keep it as a dummy module.

Signed-off-by: Hui Wang <hui.wang@canonical.com>
12 files changed:
src/daemon/default.pa.in
src/daemon/system.pa.in
src/modules/module-device-manager.c
src/modules/module-filter-apply.c
src/modules/module-intended-roles.c
src/modules/module-rescue-streams.c
src/modules/module-stream-restore.c
src/modules/module-switch-on-connect.c
src/pulsecore/core.c
src/pulsecore/device-port.c
src/pulsecore/source.c
src/pulsecore/source.h