audio/out/push: reset projected EOF time on new data

Seems like this could theoretically happen in low buffer situations, but
I haven't spotted this behavior in the wild.
This commit is contained in:
wm4 2014-10-14 22:07:04 +02:00
parent fe5ba6e217
commit 312531c08c
1 changed files with 4 additions and 1 deletions

View File

@ -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.