diff options
author | wm4 <wm4@nowhere> | 2020-02-15 18:09:28 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-02-15 18:29:44 +0100 |
commit | c92c08edc671e64c31d98584e709b0f712864772 (patch) | |
tree | 7895910f80f81c11493fcf546c9fdbf77f4856e4 /demux/demux.c | |
parent | 1d53a8f2e725cb9e3e71a9ca70feb880747d782f (diff) | |
download | mpv-c92c08edc671e64c31d98584e709b0f712864772.tar.bz2 mpv-c92c08edc671e64c31d98584e709b0f712864772.tar.xz |
edl: add mechanism for delay loading streams
Add something that will access an URL embedded in EDL only when the
track it corresponds to is actually selected. This is meant to help with
ytdl_hook.lua and to improve loading speeds.
In theory, all this stuff is available to any mpv user, but discourage
using it, as it's so specialized towards ytdl_hook.lua, that there's
danger we'll just break this once ytdl_hook.lua stops using it, or
similar.
Mostly untested.
Diffstat (limited to 'demux/demux.c')
-rw-r--r-- | demux/demux.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/demux/demux.c b/demux/demux.c index 2ecfc96ba2..88c4374e63 100644 --- a/demux/demux.c +++ b/demux/demux.c @@ -953,6 +953,7 @@ static void add_missing_streams(struct demux_internal *in, // Allocate a new sh_stream of the given type. It either has to be released // with talloc_free(), or added to a demuxer with demux_add_sh_stream(). You // cannot add or read packets from the stream before it has been added. +// type may be changed later, but only before demux_add_sh_stream(). struct sh_stream *demux_alloc_sh_stream(enum stream_type type) { struct sh_stream *sh = talloc_ptrtype(NULL, sh); |