summaryrefslogtreecommitdiffstats
path: root/TOOLS
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-02-17 23:46:12 +0100
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>2015-02-19 13:39:38 +0900
commit630a7b7d82d48b9561940a08d5291495dc2b1079 (patch)
treefcae6410c0b8a9cfb6c3f8f0fdb5a7e1fec8d06e /TOOLS
parenta4e766a77fc6b7d3ac2e9cfdbbf28b5e042f90b9 (diff)
downloadmpv-630a7b7d82d48b9561940a08d5291495dc2b1079.tar.bz2
mpv-630a7b7d82d48b9561940a08d5291495dc2b1079.tar.xz
player: use a separate context for timeline loader stuff
Instead of accessing MPContext in player/timeline/*, create a separate context struct, which the timeline loaders fill out. It turns out that there's not much in the way too big MPContext that these need to access. One major PITA is managing (and closing) the set of open demuxers. The problem is that we need a list of all demuxers to make sure no unneeded streams are enabled. This adds a callback to the demuxer_desc struct, with the intention of leaving to to the demuxer to call the right loader, instead of explicitly checking the demuxer type and dispatching manually in common code. I also considered making the timeline part of the demuxer state, but decided against: it's too much of a mess wrt. memory management and threading, and also doesn't make it clear who owns the child demuxers. With the struct timeline decoupled from the demuxer state, it's at least somewhat clear that the child demuxers are independent from the "main" demuxer. The actual changes to player/timeline/* are separated in the following commits, because they're quite verbose. Some artifacts will be removed later as soon as there's only 1 timeline loading mechanism. (cherry picked from commit a0a089f6a48c2775478b544185a0ddeabf43cce8)
Diffstat (limited to 'TOOLS')
0 files changed, 0 insertions, 0 deletions