From c92c08edc671e64c31d98584e709b0f712864772 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 15 Feb 2020 18:09:28 +0100 Subject: 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. --- demux/demux.c | 1 + 1 file changed, 1 insertion(+) (limited to 'demux/demux.c') 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); -- cgit v1.2.3