summaryrefslogtreecommitdiffstats
path: root/demux/demux_edl.c
diff options
context:
space:
mode:
Diffstat (limited to 'demux/demux_edl.c')
-rw-r--r--demux/demux_edl.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/demux/demux_edl.c b/demux/demux_edl.c
index 7f85568eae..9fbdbc9acf 100644
--- a/demux/demux_edl.c
+++ b/demux/demux_edl.c
@@ -237,10 +237,12 @@ static void build_timeline(struct timeline *tl, struct tl_parts *parts)
MP_ERR(tl, "Could not read init fragment.\n");
goto error;
}
- s = open_memory_stream(tl->init_fragment.start, tl->init_fragment.len);
- tl->track_layout = demux_open(s, NULL, tl->global);
+ struct demuxer_params params = {
+ .init_fragment = tl->init_fragment,
+ };
+ tl->track_layout = demux_open_url("memory://", &params, tl->cancel,
+ tl->global);
if (!tl->track_layout) {
- free_stream(s);
MP_ERR(tl, "Could not demux init fragment.\n");
goto error;
}