alsa-plugin: _prepare will clear the draining state

Leave the draining state when _prepare is done.

See #1467
This commit is contained in:
Wim Taymans 2021-11-02 10:17:31 +01:00
parent 9fee88239a
commit 6ebd589659

View file

@ -543,6 +543,8 @@ static int snd_pcm_pipewire_prepare(snd_pcm_ioplug_t *io)
done:
pw->hw_ptr = 0;
pw->xrun_detected = false;
pw->drained = false;
pw->draining = false;
pw_thread_loop_unlock(pw->main_loop);