summaryrefslogtreecommitdiffstats
path: root/demux/demux_edl.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-02-05 15:51:36 +0100
committerwm4 <wm4@nowhere>2017-02-05 15:51:36 +0100
commit92f9747c2bd28816824e8edfa503a65bc500f20c (patch)
treecfaf5d8696d1f63b3525b88d7c7f2826f17a067b /demux/demux_edl.c
parentaaad2d847e60a5bbd8fbf9c89f100a9ef9abd008 (diff)
downloadmpv-92f9747c2bd28816824e8edfa503a65bc500f20c.tar.bz2
mpv-92f9747c2bd28816824e8edfa503a65bc500f20c.tar.xz
demux_edl: fix behavior with no init segment provided
Not that we use it...
Diffstat (limited to 'demux/demux_edl.c')
-rw-r--r--demux/demux_edl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/demux/demux_edl.c b/demux/demux_edl.c
index fad73f7644..8b6f402b27 100644
--- a/demux/demux_edl.c
+++ b/demux/demux_edl.c
@@ -264,6 +264,12 @@ static void build_timeline(struct timeline *tl, struct tl_parts *parts)
if (part->offset_set)
MP_WARN(tl, "Offsets are ignored.\n");
tl->demuxer->is_network = true;
+
+ if (!tl->track_layout) {
+ source = open_source(tl, part->filename);
+ if (!source)
+ goto error;
+ }
} else {
MP_VERBOSE(tl, "Opening segment %d...\n", n);