diff options
author | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2012-08-19 15:31:38 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-09-18 21:07:30 +0200 |
commit | 70e7d63ba011a326f5e03137b8fb45df222c43af (patch) | |
tree | 7537f596d739f09837f43cf7078cd46bda265527 /mplayer.h | |
parent | 1959ba006ce1a4591f3dcd5093901993e3fdda5f (diff) | |
download | mpv-70e7d63ba011a326f5e03137b8fb45df222c43af.tar.bz2 mpv-70e7d63ba011a326f5e03137b8fb45df222c43af.tar.xz |
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
Diffstat (limited to 'mplayer.h')
-rw-r--r-- | mplayer.h | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -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; |