1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-27 01:22:30 +00:00

mplayer: reset subtitles handled by dec_sub.c on seek

This was somehow lost when merging this.
This commit is contained in:
wm4 2012-09-29 09:52:27 +02:00
parent bef616ede9
commit ef43d7701d

View File

@ -1758,6 +1758,8 @@ double playing_audio_pts(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);
if (vo_sub)
set_osd_subtitle(mpctx, NULL);