sink-input: clear the preferred_sink if it is default_sink
authorHui Wang <hui.wang@canonical.com>
Wed, 16 Jan 2019 01:07:26 +0000 (09:07 +0800)
committerHui Wang <hui.wang@canonical.com>
Tue, 26 Nov 2019 11:38:29 +0000 (19:38 +0800)
commitbc0e72832057c9d2744d95767dff2a48c83082c2
treecb1b66c72ff010c031a3dfff0d5cb12632cbe793
parent24d5d180b8c1e5e9d0f1da0dcd507ee9a1863280
sink-input: clear the preferred_sink if it is default_sink

When the user moves a stream to the current default sink, the
preferred_sink should be set to NULL and module-stream-restore
should clear the routing for that stream in the stream database. From
that point on the stream will be always routed to the default sink.

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