From ba5493ff87343ecb2014cc25b50fa5a6686f9020 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 25 Apr 2013 17:52:34 +0200 Subject: core: fix bogus condition that broke backstepping with last commit This broke all cases where indexing was required, and the current frame wasn't the first frame in a segment. --- core/mplayer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/mplayer.c b/core/mplayer.c index 36d0d59998..1ac2d6eeba 100644 --- a/core/mplayer.c +++ b/core/mplayer.c @@ -2606,7 +2606,7 @@ static double update_video(struct MPContext *mpctx, double endpts) if (pts == MP_NOPTS_VALUE) pts = sh_video->last_pts; } - if (endpts != MP_NOPTS_VALUE && pts < endpts) + if (endpts == MP_NOPTS_VALUE || pts < endpts) add_frame_pts(mpctx, pts); if (mpctx->hrseek_active && pts < mpctx->hrseek_pts - .005) { vo_skip_frame(video_out); -- cgit v1.2.3