0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

audio/out: fix active waiting during pause again

This was fixed in commit 8432eaefa, and commit 39609fc1 of course broke
it again. This was pretty stupid.
This commit is contained in:
wm4 2014-09-06 16:25:27 +02:00
parent a1d3afb395
commit 94113e632f

View File

@ -120,8 +120,9 @@ static void reset(struct ao *ao)
ao->driver->reset(ao);
mp_audio_buffer_clear(p->buffer);
p->paused = false;
if (p->still_playing)
wakeup_playthread(ao);
p->still_playing = false;
wakeup_playthread(ao);
pthread_mutex_unlock(&p->lock);
}