From 9d84b2c07db506228c63e62d7ac8ee0085db8fe3 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 23 Mar 2015 18:04:56 +0100 Subject: vo_opengl: remove dead assignment --- video/out/gl_video.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'video') 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); } } } -- cgit v1.2.3