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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/audio/out/push.c b/audio/out/push.c
index f94d445852..20337ef9d2 100644
--- a/audio/out/push.c
+++ b/audio/out/push.c
@@ -234,7 +234,10 @@ static int play(struct ao *ao, void **data, int samples, int flags)
p->final_chunk = is_final;
p->paused = false;
- p->still_playing |= write_samples > 0;
+ 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.