From e123aecb4825db7da60e67eae3a01d9222593d95 Mon Sep 17 00:00:00 2001 From: aurel Date: Mon, 31 May 2010 19:10:57 +0000 Subject: backport ass_flush_events() from upstream libass and make use of it This fixes subtitles duplication when seeking back in ass stream formated with the "standard" format FFmpeg uses. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31293 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mplayer.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mplayer.c') diff --git a/mplayer.c b/mplayer.c index 98d36586ee..1c56ba3c19 100644 --- a/mplayer.c +++ b/mplayer.c @@ -2581,6 +2581,11 @@ static int seek(MPContext *mpctx, double amount, int style) vobsub_seek(vo_vobsub, mpctx->sh_video->pts); } +#ifdef CONFIG_ASS + if (ass_enabled && mpctx->d_sub->sh && ((sh_sub_t *)mpctx->d_sub->sh)->ass_track) + ass_flush_events(((sh_sub_t *)mpctx->d_sub->sh)->ass_track); +#endif + edl_seek_reset(mpctx); c_total = 0; -- cgit v1.2.3