From 70e7d63ba011a326f5e03137b8fb45df222c43af Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 19 Aug 2012 15:31:38 +0200 Subject: core, timeline: cache external ordered chapter files too Previously, Matroska source files other than the initially opened one were always accessed without caching. Enable cache for extra files too. A separate cache process/thread is started for each file, which is less than optimal but probably better than no caching if the user explicitly enabled cache. This commit only implements caching for Matroska ordered chapters (not for EDL timeline). To build the timeline we need to demux the files in the current directory to look for segments with matching uuid. This first demux is done with no cache since we don't need to read a lot of the stream. If the file is recognized as one of the needed sources it's reopened with cache enabled. Also move the stream_cache_size global variable to the options struct. Conflicts: cfg-mplayer.h mplayer.c stream/stream.h timeline/tl_matroska.c --- mplayer.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'mplayer.h') diff --git a/mplayer.h b/mplayer.h index 2c46d9ac85..d1618bf929 100644 --- a/mplayer.h +++ b/mplayer.h @@ -31,8 +31,6 @@ extern float audio_delay; extern double force_fps; -extern int stream_cache_size; - extern int frame_dropping; extern int auto_quality; -- cgit v1.2.3