summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-01-09 13:32:04 +0100
committerwm4 <wm4@nowhere>2017-01-09 13:32:04 +0100
commit5d7f881bdc5c4d961ca341a1ddc30e297e06166b (patch)
tree33ac03875b318b3b77dd0a2b5a8bcb860cc76283 /audio
parentafcf3e154ab8765f49d85e43c76cde5bc8bf5909 (diff)
downloadmpv-5d7f881bdc5c4d961ca341a1ddc30e297e06166b.tar.bz2
mpv-5d7f881bdc5c4d961ca341a1ddc30e297e06166b.tar.xz
audio/out/push: merge if branches with same condition
Cosmetic change.
Diffstat (limited to 'audio')
-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;
}