1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-30 07:18:17 +00:00

demux_edl: fix crash in some rare circumstances

tl->demuxer is NULL for timeline->next structs. This is really nonsense.
To be fixed properly in the following commit.
This commit is contained in:
wm4 2019-01-11 12:11:51 +01:00
parent 0143fe0efe
commit 9bb2c42b40

View File

@ -271,7 +271,8 @@ static void build_timeline(struct timeline *tl, struct tl_parts *parts)
MP_WARN(tl, "Segment %d has unknown duration.\n", n);
if (part->offset_set)
MP_WARN(tl, "Offsets are ignored.\n");
tl->demuxer->is_network = true;
if (tl->demuxer)
tl->demuxer->is_network = true;
if (!tl->track_layout) {
tl->track_layout = open_source(tl, part->filename);