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
1 changed files with 2 additions and 0 deletions

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);