summaryrefslogtreecommitdiffstats
path: root/waftools
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-01-31 22:40:35 +0100
committerwm4 <wm4@nowhere>2014-01-31 22:40:35 +0100
commiteb1778074078077d2bc0035fb402dda6b9df81a8 (patch)
tree15c60659cfe19c4a2ccd6a18c1a9a9f2727d2e7f /waftools
parentd8dd9a6725a0f9b961c641ed83b325bbdbb82482 (diff)
downloadmpv-eb1778074078077d2bc0035fb402dda6b9df81a8.tar.bz2
mpv-eb1778074078077d2bc0035fb402dda6b9df81a8.tar.xz
cache: refuse to seek outside of cache boundaries
Note that this still happens in the stream level, so we can't have nice highlevel behavior restricting seeking. Instead, if a seek leads to the demuxer requesting data outside of the cached range, the seek will simply fail. This might confuse the demuxer, and the resulting behavior is not necessarily useful. Note that this also doesn't try to skip data on a forward seek. This would just freeze the stream with slow unseekable streams. One nice thing is that stream.h has a separate function for merely skipping data (separate from seeking forward), which is pretty useful in this case: we want skipping of data to work, even if we reject seeking forward by skipping data as too expensive. This probably is or will be useful for demux_mkv.c.
Diffstat (limited to 'waftools')
0 files changed, 0 insertions, 0 deletions