mirror of https://github.com/mpv-player/mpv
demux_mkv_timeline: don't continue if reopening file failed
Could theoretically dereference "d" later in the loop. It's on an error codepath, so just give up.
This commit is contained in:
parent
68b71346ec
commit
f92c7fa807
|
@ -217,7 +217,7 @@ static bool check_file_seg(struct tl_ctx *ctx, char *filename, int segment)
|
|||
params.matroska_wanted_uids = ctx->uids; // potentially reallocated, same data
|
||||
d = demux_open_url(filename, ¶ms, cancel, ctx->global);
|
||||
if (!d)
|
||||
continue;
|
||||
return false;
|
||||
}
|
||||
|
||||
ctx->sources[i] = d;
|
||||
|
|
Loading…
Reference in New Issue