mirror of https://github.com/mpv-player/mpv
core: fix crash if VO init fails
This commit is contained in:
parent
527b39cafa
commit
56382c91e4
|
@ -1740,7 +1740,7 @@ static bool is_non_interleaved(struct MPContext *mpctx, struct track *track)
|
||||||
struct demuxer *demuxer = track->demuxer;
|
struct demuxer *demuxer = track->demuxer;
|
||||||
for (int type = 0; type < STREAM_TYPE_COUNT; type++) {
|
for (int type = 0; type < STREAM_TYPE_COUNT; type++) {
|
||||||
struct track *other = mpctx->current_track[type];
|
struct track *other = mpctx->current_track[type];
|
||||||
if (other != track && other->demuxer && other->demuxer == demuxer)
|
if (other && other != track && other->demuxer && other->demuxer == demuxer)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue