From 880bf54d7e7151875c373f3b749b1f47aeb9a87c Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 19 Jan 2017 08:00:19 +0100 Subject: 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. --- demux/demux.h | 1 + 1 file changed, 1 insertion(+) (limited to 'demux/demux.h') 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; -- cgit v1.2.3