mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
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:
parent
c254f8405c
commit
1cea7ab38d
4 changed files with 45 additions and 65 deletions
|
|
@ -671,6 +671,8 @@ void pa_source_put(pa_source *s) {
|
|||
* source, and if we were to call pa_core_update_default_source() before that,
|
||||
* the default source might change twice, causing unnecessary stream moving. */
|
||||
pa_core_update_default_source(s->core);
|
||||
|
||||
pa_core_move_streams_to_newly_available_preferred_source(s->core, s);
|
||||
}
|
||||
|
||||
/* Called from main context */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue