summaryrefslogtreecommitdiffstats
path: root/audio/out/push.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/out/push.c')
-rw-r--r--audio/out/push.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/audio/out/push.c b/audio/out/push.c
index a4a6808d7f..a722d19ea2 100644
--- a/audio/out/push.c
+++ b/audio/out/push.c
@@ -251,12 +251,11 @@ static int play(struct ao *ao, void **data, int samples, int flags)
if (got_data) {
p->still_playing = true;
p->expected_end_time = 0;
- }
- // If we don't have new data, the decoder thread basically promises it
- // will send new data as soon as it's available.
- if (got_data)
+ // If we don't have new data, the decoder thread basically promises it
+ // will send new data as soon as it's available.
wakeup_playthread(ao);
+ }
pthread_mutex_unlock(&p->lock);
return write_samples;
}