From 8a3615f2d8a902bc5aaf12550eb26f4d3f40c7ae Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 11 Jul 2013 19:13:22 +0200 Subject: mplayer: don't set bogus video pts after seek reset As the comment n the removed code says, this was once needed for something subtitle related. This code has been cleaned up long ago, so at least the original reason for it is gone. --- core/mplayer.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'core') diff --git a/core/mplayer.c b/core/mplayer.c index 0d07b518d8..97bde0bc4d 100644 --- a/core/mplayer.c +++ b/core/mplayer.c @@ -2742,13 +2742,10 @@ static void seek_reset(struct MPContext *mpctx, bool reset_ao, bool reset_ac) vf_chain_seek_reset(mpctx->sh_video->vfilter); mpctx->sh_video->num_buffered_pts = 0; mpctx->sh_video->last_pts = MP_NOPTS_VALUE; + mpctx->sh_video->pts = MP_NOPTS_VALUE; + mpctx->video_pts = MP_NOPTS_VALUE; mpctx->delay = 0; mpctx->time_frame = 0; - // Not all demuxers set d_video->pts during seek, so this value - // (which was used by at least vobsub code below) may be completely - // wrong (probably 0). - mpctx->sh_video->pts = mpctx->sh_video->ds->last_pts + mpctx->video_offset; - mpctx->video_pts = mpctx->sh_video->pts; } if (mpctx->sh_audio && reset_ac) { -- cgit v1.2.3