mirror of https://github.com/mpv-player/mpv
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:
parent
fe5ba6e217
commit
312531c08c
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue