device-port: moving streams due to changing the status of active_port
authorHui Wang <hui.wang@canonical.com>
Wed, 16 Jan 2019 04:58:16 +0000 (12:58 +0800)
committerHui Wang <hui.wang@canonical.com>
Wed, 27 Nov 2019 04:23:17 +0000 (12:23 +0800)
commit60d948618e7299740e7247aef1f10c04a4866147
treeb3518c3321be6b161511fe2b471dd67a34fea8f8
parentb886836630a5d4ba5bc9d310328ef243eb036728
device-port: moving streams due to changing the status of active_port

When the active port of a sink becomes unavailable, all streams from
that sink should be moved to the default sink.

When the active port of a sink changes state from unavailable, all
streams that have their preferred_sink set to this sink should be moved
to this sink.

Signed-off-by: Hui Wang <hui.wang@canonical.com>
src/pulsecore/device-port.c
src/pulsecore/device-port.h