diff options
author | wm4 <wm4@nowhere> | 2016-11-01 14:28:36 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-11-01 16:25:40 +0100 |
commit | 58383229756a8871fb312c0897914e45e5824fc1 (patch) | |
tree | a14d3301ea3508efd7e280419049993d01623cd7 /demux/demux_disc.c | |
parent | 8dff51e06c7474baf0870f5f1345fdef2149f72f (diff) | |
download | mpv-58383229756a8871fb312c0897914e45e5824fc1.tar.bz2 mpv-58383229756a8871fb312c0897914e45e5824fc1.tar.xz |
demux: improve buffer estimation in a corner case
This deals with the estimation of buffered packets, which is used mostly
for display, but also things like pausing on low buffer levels.
If a stream is fully EOF (no more packets), we don't want to include it
in the total buffer amount. This also means we should make ds->eof less
flaky and more stable, so don't reset it in ds_get_packets() (this
function reset ds->eof just to retrigger a packet read attempt - we can
have this slightly simpler). This somewhat fixes buffering display when
e.g. issuing a refresh seek after re-enabling audio/video when playing
with subtitles only.
Diffstat (limited to 'demux/demux_disc.c')
0 files changed, 0 insertions, 0 deletions