From 3afe76133b184260db726269d6495b5bbf044b4d Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 7 Dec 2014 14:21:12 +0100 Subject: sub: remove assertion This should clearly be impossible, but it seems to happen with ordered chapters for a user. Since I can't tell what the actual bug is and it seems impossible to know the details without downloading possibly huge files, this is probably the best we can do. Should at least partially fix #1319. --- player/sub.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'player') diff --git a/player/sub.c b/player/sub.c index 461f7023cf..0323d49772 100644 --- a/player/sub.c +++ b/player/sub.c @@ -227,10 +227,9 @@ static void update_subtitle(struct MPContext *mpctx, int order) struct track *track = mpctx->current_track[order][STREAM_SUB]; struct dec_sub *dec_sub = mpctx->d_sub[order]; - if (!track) + if (!track || !dec_sub) return; - assert(dec_sub); int obj = order ? OSDTYPE_SUB2 : OSDTYPE_SUB; if (mpctx->d_video) { -- cgit v1.2.3