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:
wm4 2015-03-23 18:24:28 +01:00
parent 68b71346ec
commit f92c7fa807
1 changed files with 1 additions and 1 deletions

View File

@ -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, &params, cancel, ctx->global);
if (!d)
continue;
return false;
}
ctx->sources[i] = d;