player: don't crash when using sub_seek without subtitles

Recent regression. It turns out the assertion was completely unneeded.

Fixes #1285.
This commit is contained in:
wm4 2014-11-23 15:12:20 +01:00
parent ae5df9be98
commit 17ee2ca524
1 changed files with 0 additions and 2 deletions

View File

@ -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.