mirror of
https://github.com/mpv-player/mpv
synced 2025-01-14 02:51:26 +00:00
mplayer: reset subtitles handled by dec_sub.c on seek
This was somehow lost when merging this.
This commit is contained in:
parent
bef616ede9
commit
ef43d7701d
@ -1758,6 +1758,8 @@ double playing_audio_pts(struct MPContext *mpctx)
|
|||||||
|
|
||||||
static void reset_subtitles(struct MPContext *mpctx)
|
static void reset_subtitles(struct MPContext *mpctx)
|
||||||
{
|
{
|
||||||
|
if (mpctx->sh_sub)
|
||||||
|
sub_reset(mpctx->sh_sub, mpctx->osd);
|
||||||
sub_clear_text(&mpctx->subs, MP_NOPTS_VALUE);
|
sub_clear_text(&mpctx->subs, MP_NOPTS_VALUE);
|
||||||
if (vo_sub)
|
if (vo_sub)
|
||||||
set_osd_subtitle(mpctx, NULL);
|
set_osd_subtitle(mpctx, NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user