From 17ee2ca52444dec09713d62fb092d5df4b0d2b75 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 23 Nov 2014 15:12:20 +0100 Subject: [PATCH] player: don't crash when using sub_seek without subtitles Recent regression. It turns out the assertion was completely unneeded. Fixes #1285. --- player/sub.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/player/sub.c b/player/sub.c index 3d42e0a662..461f7023cf 100644 --- a/player/sub.c +++ b/player/sub.c @@ -201,8 +201,6 @@ void get_osd_sub_state(struct MPContext *mpctx, int order, struct dec_sub *dec_sub = mpctx->d_sub[order]; int obj = order ? OSDTYPE_SUB2 : OSDTYPE_SUB; - assert(track); - struct osd_sub_state state = { .dec_sub = dec_sub, // Decides whether to use OSD path or normal subtitle rendering path.