mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -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
|
|
@ -398,7 +398,7 @@ int pa__init(pa_module*m) {
|
|||
}
|
||||
|
||||
if (on_rescue) {
|
||||
/* A little bit later than module-stream-restore, a little bit earlier than module-rescue-streams, ... */
|
||||
/* A little bit later than module-stream-restore, ... */
|
||||
u->sink_unlink_hook_slot = pa_hook_connect(&m->core->hooks[PA_CORE_HOOK_SINK_UNLINK], PA_HOOK_LATE+10, (pa_hook_cb_t) sink_unlink_hook_callback, u);
|
||||
u->source_unlink_hook_slot = pa_hook_connect(&m->core->hooks[PA_CORE_HOOK_SOURCE_UNLINK], PA_HOOK_LATE+10, (pa_hook_cb_t) source_unlink_hook_callback, u);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue