mirror of https://github.com/mpv-player/mpv
demux_edl: fix behavior with no init segment provided
Not that we use it...
This commit is contained in:
parent
aaad2d847e
commit
92f9747c2b
|
@ -264,6 +264,12 @@ static void build_timeline(struct timeline *tl, struct tl_parts *parts)
|
||||||
if (part->offset_set)
|
if (part->offset_set)
|
||||||
MP_WARN(tl, "Offsets are ignored.\n");
|
MP_WARN(tl, "Offsets are ignored.\n");
|
||||||
tl->demuxer->is_network = true;
|
tl->demuxer->is_network = true;
|
||||||
|
|
||||||
|
if (!tl->track_layout) {
|
||||||
|
source = open_source(tl, part->filename);
|
||||||
|
if (!source)
|
||||||
|
goto error;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
MP_VERBOSE(tl, "Opening segment %d...\n", n);
|
MP_VERBOSE(tl, "Opening segment %d...\n", n);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue