From 2e401201adf562ae9824fc79e6834ca648b0b114 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 23 Nov 2015 16:54:53 +0100 Subject: vo: remove VOCTRL_GET_RECENT_FLIP_TIME It doesn't have any real purpose anymore. Up until now, it was still implemented by vo_wayland, but since we changed how the frame callbacks work, even that appears to be pointless. Originally, the plan was to somehow extend this mechanism to all backends and to magically fix frame scheduling, but since we can't hope for proper mechanisms even on wayland, this idea looks way less interesting. --- video/out/vo.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'video/out/vo.c') diff --git a/video/out/vo.c b/video/out/vo.c index c260ac7f0f..6606cf82f7 100644 --- a/video/out/vo.c +++ b/video/out/vo.c @@ -727,14 +727,7 @@ static bool render_frame(struct vo *vo) vo->driver->flip_page(vo); int64_t prev_flip = in->last_flip; - - in->last_flip = -1; - - vo->driver->control(vo, VOCTRL_GET_RECENT_FLIP_TIME, &in->last_flip); - - if (in->last_flip < 0) - in->last_flip = mp_time_us(); - + in->last_flip = mp_time_us(); in->vsync_interval_approx = in->last_flip - prev_flip; MP_STATS(vo, "end video"); -- cgit v1.2.3