mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-12 13:30:10 -05:00
source: move the streams to the default_source when the source unlink
When a source is unlinked, all streams of this source are moved to default_source, this action is implemented in the core rather than modules now. And after this change, the module-rescue-streams is not needed, but for backward compatibility, we keep it as a dummy module. Signed-off-by: Hui Wang <hui.wang@canonical.com>
This commit is contained in:
parent
976a366c9f
commit
5e0d5a8682
12 changed files with 35 additions and 267 deletions
|
|
@ -116,7 +116,7 @@ void pa_device_port_set_available(pa_device_port *p, pa_available_t status) {
|
|||
source = pa_device_port_get_source(p);
|
||||
if (source && p == source->active_port) {
|
||||
if (source->active_port->available == PA_AVAILABLE_NO)
|
||||
pa_source_move_streams_to_default_source(p->core, source);
|
||||
pa_source_move_streams_to_default_source(p->core, source, false);
|
||||
else
|
||||
pa_core_move_streams_to_newly_available_preferred_source(p->core, source);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue