source: move streams to new appeared sources if they prefer these sources

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

Signed-off-by: Hui Wang <hui.wang@canonical.com>
This commit is contained in:
Hui Wang 2019-12-07 11:36:25 +08:00 committed by Tanu Kaskinen
parent c254f8405c
commit 1cea7ab38d
4 changed files with 45 additions and 65 deletions

View file

@ -281,4 +281,6 @@ const char *pa_suspend_cause_to_string(pa_suspend_cause_t cause, char buf[PA_SUS
void pa_core_move_streams_to_newly_available_preferred_sink(pa_core *c, pa_sink *s);
void pa_core_move_streams_to_newly_available_preferred_source(pa_core *c, pa_source *s);
#endif