summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-09-29 09:52:27 +0200
committerwm4 <wm4@nowhere>2012-10-16 07:26:31 +0200
commitef43d7701d2ae26227fad403e48a03cf2aea0ab0 (patch)
tree2db1d25bfb4182426e63aaad374afa5d9e2b9ecd
parentbef616ede902b2e75f4b3f75f64b68998f1fee48 (diff)
downloadmpv-ef43d7701d2ae26227fad403e48a03cf2aea0ab0.tar.bz2
mpv-ef43d7701d2ae26227fad403e48a03cf2aea0ab0.tar.xz
mplayer: reset subtitles handled by dec_sub.c on seek
This was somehow lost when merging this.
-rw-r--r--mplayer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mplayer.c b/mplayer.c
index 5c08cdf330..3d4e61c9e2 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -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);