summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-03-23 18:04:56 +0100
committerwm4 <wm4@nowhere>2015-03-23 18:04:56 +0100
commit9d84b2c07db506228c63e62d7ac8ee0085db8fe3 (patch)
treec18152f4afc1db4323b66f1f821d8a67771d6ebf
parent16a5c6c5359e0471bf985da5a65bef5a0aedbf80 (diff)
downloadmpv-9d84b2c07db506228c63e62d7ac8ee0085db8fe3.tar.bz2
mpv-9d84b2c07db506228c63e62d7ac8ee0085db8fe3.tar.xz
vo_opengl: remove dead assignment
-rw-r--r--video/out/gl_video.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/video/out/gl_video.c b/video/out/gl_video.c
index 65e8262e64..715e5f8d63 100644
--- a/video/out/gl_video.c
+++ b/video/out/gl_video.c
@@ -1830,10 +1830,10 @@ static void gl_video_interpolate_frame(struct gl_video *p, int fbo,
if (t) {
int64_t vsync_interval = t->next_vsync - t->prev_vsync;
int64_t vsync_guess = t->next_vsync + vsync_interval;
- if (p->surfaces[surface_nxt].pts > p->surfaces[p->surface_now].pts
- && p->surfaces[surface_nxt].pts < vsync_guess) {
+ if (p->surfaces[surface_nxt].pts > p->surfaces[p->surface_now].pts &&
+ p->surfaces[surface_nxt].pts < vsync_guess)
+ {
p->surface_now = surface_nxt;
- surface_nxt = fbosurface_wrap(p->surface_now+1);
}
}
}