diff options
author | wm4 <wm4@nowhere> | 2017-10-25 15:25:25 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-10-25 16:39:33 +0200 |
commit | 3d716515239e8486f36a0e4cf3c76870d08752e3 (patch) | |
tree | 46cb4c441baac7c3028372f8d16dc672e1f7a09d /libmpv | |
parent | 56d9dafbbb1a5051a40968dec297e018d04a950f (diff) | |
download | mpv-3d716515239e8486f36a0e4cf3c76870d08752e3.tar.bz2 mpv-3d716515239e8486f36a0e4cf3c76870d08752e3.tar.xz |
demux: fix tracking of forward/backward cache size
Which parts of the queue are considered forward or backward cache
depends on ds->reader_header. The packet at ds->reader_head, as well as
all packets following it (via the ->next field) are considered forward.
The fw_packs/fw_bytes/bw_bytes must be updated accordingly.
This broke in demux_add_packet(), when ds->reader_head was _not_ set on
the first packet (or before). This could happen since commit
05ae571241a, which can require skipping packets (so they immediately end
up in the backbuffer).
Diffstat (limited to 'libmpv')
0 files changed, 0 insertions, 0 deletions