sub: remove redundant condition

This commit is contained in:
wm4 2013-06-11 19:26:57 +02:00
parent 4f5e12136d
commit a792f0d628
1 changed files with 2 additions and 2 deletions

View File

@ -2010,7 +2010,8 @@ static void reinit_subs(struct MPContext *mpctx)
if (!mpctx->sh_sub->dec_sub)
mpctx->sh_sub->dec_sub = sub_create(opts);
if (track->demuxer && !track->stream) {
assert(track->demuxer);
if (!track->stream) {
// Lazily added DVD track - we must not miss the first subtitle packet,
// which makes the demuxer create the sh_stream, and contains the first
// subtitle event.
@ -2025,7 +2026,6 @@ static void reinit_subs(struct MPContext *mpctx)
return;
}
assert(track->demuxer && track->stream);
mpctx->initialized_flags |= INITIALIZED_SUB;