sink: move streams to new appeared sinks if they prefer these sinks
authorHui Wang <hui.wang@canonical.com>
Wed, 16 Jan 2019 04:10:38 +0000 (12:10 +0800)
committerHui Wang <hui.wang@canonical.com>
Wed, 27 Nov 2019 04:11:28 +0000 (12:11 +0800)
commitb886836630a5d4ba5bc9d310328ef243eb036728
tree657dfd75bd46fefb8a621203049781ca19df4718
parent40d92e9b1ad37f45f555946368eb42c77354819c
sink: move streams to new appeared sinks if they prefer these sinks

When a new sink appears, all streams that have their preferred_sink
set to the new sink should be moved to the new sink.

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