summaryrefslogtreecommitdiffstats
path: root/video/out/wayland_common.c
diff options
context:
space:
mode:
authordudemanguy <random342@airmail.cc>2019-10-07 07:48:34 -0500
committerDudemanguy911 <random342@airmail.cc>2019-10-10 17:41:19 +0000
commite0895e097bcf15cdabc93f340dae24a88b0dc89c (patch)
tree8347cd700d146f7c1d2484af0e85e3df9389fc2c /video/out/wayland_common.c
parent6002e2705f5e77de4a22fc24e94734dd3500feb7 (diff)
downloadmpv-e0895e097bcf15cdabc93f340dae24a88b0dc89c.tar.bz2
mpv-e0895e097bcf15cdabc93f340dae24a88b0dc89c.tar.xz
Revert "vo: add support for externally driven renderloop and make wayland use it"
The externally driven renderloop was originally added for the wayland context (to make display sync somewhat work), but it has a lot of issues with mpv's internal structure. A different approach should be used. This reverts commit a743fef837bcab206b1e576db7e7a64b02890449.
Diffstat (limited to 'video/out/wayland_common.c')
-rw-r--r--video/out/wayland_common.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c
index a70377f3c6..cc07296a43 100644
--- a/video/out/wayland_common.c
+++ b/video/out/wayland_common.c
@@ -807,9 +807,6 @@ static void frame_callback(void *data, struct wl_callback *callback, uint32_t ti
wl->frame_callback = wl_surface_frame(wl->surface);
wl_callback_add_listener(wl->frame_callback, &frame_listener, wl);
-
- if (!vo_render_frame_external(wl->vo))
- wl_surface_commit(wl->surface);
}
static const struct wl_callback_listener frame_listener = {
@@ -827,7 +824,6 @@ static void registry_handle_add(void *data, struct wl_registry *reg, uint32_t id
wl->surface = wl_compositor_create_surface(wl->compositor);
wl->cursor_surface = wl_compositor_create_surface(wl->compositor);
wl_surface_add_listener(wl->surface, &surface_listener, wl);
- vo_enable_external_renderloop(wl->vo);
wl->frame_callback = wl_surface_frame(wl->surface);
wl_callback_add_listener(wl->frame_callback, &frame_listener, wl);
}
@@ -1386,17 +1382,6 @@ int vo_wayland_control(struct vo *vo, int *events, int request, void *arg)
*(char ***)arg = get_displays_spanned(wl);
return VO_TRUE;
}
- case VOCTRL_PAUSE: {
- wl_callback_destroy(wl->frame_callback);
- wl->frame_callback = NULL;
- vo_disable_external_renderloop(wl->vo);
- return VO_TRUE;
- }
- case VOCTRL_RESUME: {
- vo_enable_external_renderloop(wl->vo);
- frame_callback(wl, NULL, 0);
- return VO_TRUE;
- }
case VOCTRL_GET_UNFS_WINDOW_SIZE: {
int *s = arg;
s[0] = mp_rect_w(wl->geometry)*wl->scaling;