mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
alsa: unlock pending drain in drop
When we set activated=false, signal the thread because it might be waiting in drain. See #4728
This commit is contained in:
parent
f65f5cf866
commit
a5e63102d9
1 changed files with 1 additions and 0 deletions
|
|
@ -616,6 +616,7 @@ static int snd_pcm_pipewire_stop(snd_pcm_ioplug_t *io)
|
||||||
if (pw->activated && pw->stream != NULL) {
|
if (pw->activated && pw->stream != NULL) {
|
||||||
pw_stream_set_active(pw->stream, false);
|
pw_stream_set_active(pw->stream, false);
|
||||||
pw->activated = false;
|
pw->activated = false;
|
||||||
|
pw_thread_loop_signal(pw->main_loop, false);
|
||||||
}
|
}
|
||||||
pw_thread_loop_unlock(pw->main_loop);
|
pw_thread_loop_unlock(pw->main_loop);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue