From 94113e632f162d6331d0fdd559ffe9802330cd05 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 6 Sep 2014 16:25:27 +0200 Subject: 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. --- audio/out/push.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/audio/out/push.c b/audio/out/push.c index 85abb6de85..3285543f24 100644 --- a/audio/out/push.c +++ b/audio/out/push.c @@ -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); } -- cgit v1.2.3