ao/pulse: fix incorrect state reported after reset

fixes #8768
This commit is contained in:
sfan5 2021-04-29 17:01:25 +02:00
parent 0d384592c5
commit aa300f8023
1 changed files with 1 additions and 0 deletions

View File

@ -535,6 +535,7 @@ static void reset(struct ao *ao)
cork(ao, true);
struct priv *priv = ao->priv;
pa_threaded_mainloop_lock(priv->mainloop);
priv->playing = false;
priv->retval = 0;
if (!waitop(priv, pa_stream_flush(priv->stream, success_cb, ao)) ||
!priv->retval)