mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-01 22:58:47 -04:00
equalizer: Handle underlying sink going away better when autoloaded
Detailed description in fix for module-echo-cancel. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=90416
This commit is contained in:
parent
bf7bc1a55f
commit
aafb56d902
1 changed files with 6 additions and 3 deletions
|
|
@ -1055,9 +1055,6 @@ static bool sink_input_may_move_to_cb(pa_sink_input *i, pa_sink *dest) {
|
|||
pa_sink_input_assert_ref(i);
|
||||
pa_assert_se(u = i->userdata);
|
||||
|
||||
if (u->autoloaded)
|
||||
return false;
|
||||
|
||||
return u->sink != dest;
|
||||
}
|
||||
|
||||
|
|
@ -1068,6 +1065,12 @@ static void sink_input_moving_cb(pa_sink_input *i, pa_sink *dest) {
|
|||
pa_sink_input_assert_ref(i);
|
||||
pa_assert_se(u = i->userdata);
|
||||
|
||||
if (u->autoloaded) {
|
||||
/* We were autoloaded, and don't support moving. Let's unload ourselves. */
|
||||
pa_log_debug("Can't move autoloaded stream, unloading");
|
||||
pa_module_unload_request(u->module, true);
|
||||
}
|
||||
|
||||
if (dest) {
|
||||
pa_sink_set_asyncmsgq(u->sink, dest->asyncmsgq);
|
||||
pa_sink_update_flags(u->sink, PA_SINK_LATENCY|PA_SINK_DYNAMIC_LATENCY, dest->flags);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue