From 56382c91e4a5a569af94cfab35a0c525c55ed2e3 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 27 Dec 2012 16:27:58 +0100 Subject: core: fix crash if VO init fails --- core/mplayer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/mplayer.c b/core/mplayer.c index 39991727c3..553da904bb 100644 --- a/core/mplayer.c +++ b/core/mplayer.c @@ -1740,7 +1740,7 @@ static bool is_non_interleaved(struct MPContext *mpctx, struct track *track) struct demuxer *demuxer = track->demuxer; for (int type = 0; type < STREAM_TYPE_COUNT; 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 true; -- cgit v1.2.3