1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-27 09:32:40 +00:00

vo_opengl: remove dead assignment

This commit is contained in:
wm4 2015-03-23 18:04:56 +01:00
parent 16a5c6c535
commit 9d84b2c07d

View File

@ -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);
}
}
}