mirror of
https://github.com/mpv-player/mpv
synced 2025-04-07 10:02:50 +00:00
sub: remove redundant condition
This commit is contained in:
parent
4f5e12136d
commit
a792f0d628
@ -2010,7 +2010,8 @@ static void reinit_subs(struct MPContext *mpctx)
|
|||||||
if (!mpctx->sh_sub->dec_sub)
|
if (!mpctx->sh_sub->dec_sub)
|
||||||
mpctx->sh_sub->dec_sub = sub_create(opts);
|
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,
|
// Lazily added DVD track - we must not miss the first subtitle packet,
|
||||||
// which makes the demuxer create the sh_stream, and contains the first
|
// which makes the demuxer create the sh_stream, and contains the first
|
||||||
// subtitle event.
|
// subtitle event.
|
||||||
@ -2025,7 +2026,6 @@ static void reinit_subs(struct MPContext *mpctx)
|
|||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
assert(track->demuxer && track->stream);
|
|
||||||
|
|
||||||
mpctx->initialized_flags |= INITIALIZED_SUB;
|
mpctx->initialized_flags |= INITIALIZED_SUB;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user