summaryrefslogtreecommitdiffstats
path: root/video/out/vo_wayland.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-11-23 16:54:53 +0100
committerwm4 <wm4@nowhere>2015-11-23 16:54:53 +0100
commit2e401201adf562ae9824fc79e6834ca648b0b114 (patch)
treeebd81568f8d43d4375c6cb6bcf517e0d4faf7705 /video/out/vo_wayland.c
parentb2e8d5749be8825b011458d132873ff2be5b68ae (diff)
downloadmpv-2e401201adf562ae9824fc79e6834ca648b0b114.tar.bz2
mpv-2e401201adf562ae9824fc79e6834ca648b0b114.tar.xz
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.
Diffstat (limited to 'video/out/vo_wayland.c')
-rw-r--r--video/out/vo_wayland.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/video/out/vo_wayland.c b/video/out/vo_wayland.c
index c9f909b448..dcbe2d5347 100644
--- a/video/out/vo_wayland.c
+++ b/video/out/vo_wayland.c
@@ -132,8 +132,6 @@ struct priv {
// this id tells us if the subtitle part has changed or not
int change_id[MAX_OSD_PARTS];
- int64_t recent_flip_time; // last frame event
-
// options
int enable_alpha;
int use_rgb565;
@@ -513,7 +511,6 @@ static void redraw(void *data, uint32_t time)
p->x = 0;
p->y = 0;
- p->recent_flip_time = mp_time_us();
}
static void flip_page(struct vo *vo)
@@ -663,11 +660,6 @@ static int control(struct vo *vo, uint32_t request, void *data)
}
case VOCTRL_REDRAW_FRAME:
return redraw_frame(p);
- case VOCTRL_GET_RECENT_FLIP_TIME:
- {
- *(int64_t*) data = p->recent_flip_time;
- return VO_TRUE;
- }
}
int events = 0;
int r = vo_wayland_control(vo, &events, request, data);