core, timeline: cache external ordered chapter files too
commit5722fa1552a647ceceea9350281d6fee641359ad
authorStefano Pigozzi <stefano.pigozzi@gmail.com>
Sun, 19 Aug 2012 13:31:38 +0000 (19 15:31 +0200)
committerUoti Urpala <uau@mplayer2.org>
Thu, 6 Sep 2012 16:04:53 +0000 (6 19:04 +0300)
tree96cef6118c577b297e23766026018cbb42d27c9f
parentff4bdb178a98a20ee670dc80f360b1dd85784fae
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.
cfg-mplayer.h
mplayer.c
mplayer.h
options.h
stream/cache2.c
stream/http.c
stream/network.c
stream/stream.h
timeline/tl_matroska.c