diff options
author | wm4 <wm4@nowhere> | 2017-01-19 08:00:19 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-01-19 08:00:19 +0100 |
commit | 880bf54d7e7151875c373f3b749b1f47aeb9a87c (patch) | |
tree | 46c85b1dcd10ecd97c318cf3d695f364c44687b0 /demux/demux.h | |
parent | 06c8ec27f61a6958cb4eb32b18d24bc5686e6c8e (diff) | |
download | mpv-880bf54d7e7151875c373f3b749b1f47aeb9a87c.tar.bz2 mpv-880bf54d7e7151875c373f3b749b1f47aeb9a87c.tar.xz |
player: actually let cache readahead after opening demuxer for prefetch
Disabling cache readahead by default until at least 1 track is selected
is mainly for external files and such, where you don't want them to use
up resources until they're actually used.
It doesn't make sense to disable the cache for the demuxer opened for
prefetch. Also, it's fine to let it do that for the main file too (doing
or not doing it is of little consequence). That saves us from having to
distinguish them.
Diffstat (limited to 'demux/demux.h')
-rw-r--r-- | demux/demux.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/demux/demux.h b/demux/demux.h index 0e5a5e15c6..f9d98e5cef 100644 --- a/demux/demux.h +++ b/demux/demux.h @@ -162,6 +162,7 @@ struct demuxer_params { bool *matroska_was_valid; struct timeline *timeline; bool disable_timeline; + bool initial_readahead; // -- demux_open_url() only int stream_flags; bool allow_capture; |