diff options
author | 2016-11-01 14:28:36 +0100 | |
---|---|---|
committer | 2016-11-01 16:25:40 +0100 | |
commit | 58383229756a8871fb312c0897914e45e5824fc1 (patch) | |
tree | a14d3301ea3508efd7e280419049993d01623cd7 /audio/format.h | |
parent | 8dff51e06c7474baf0870f5f1345fdef2149f72f (diff) |
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 'audio/format.h')
0 files changed, 0 insertions, 0 deletions