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:
parent
0143fe0efe
commit
9bb2c42b40
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user