summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-04-25 17:52:34 +0200
committerwm4 <wm4@nowhere>2013-04-25 17:52:34 +0200
commitba5493ff87343ecb2014cc25b50fa5a6686f9020 (patch)
tree3cdec88c3901ffb1e6885a696418331a67ae081f /core
parent9d9d6517d26f0c6407d2f850f0d3417068d58291 (diff)
downloadmpv-ba5493ff87343ecb2014cc25b50fa5a6686f9020.tar.bz2
mpv-ba5493ff87343ecb2014cc25b50fa5a6686f9020.tar.xz
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.
Diffstat (limited to 'core')
-rw-r--r--core/mplayer.c2
1 files changed, 1 insertions, 1 deletions
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);