From ec18fe89655cb0c95fbbf7046be36214c4bd74cc Mon Sep 17 00:00:00 2001 From: George Kiagiadakis Date: Wed, 12 Mar 2014 17:03:10 +0200 Subject: [PATCH] waylandsink/wldisplay: bind to the latest available wl_compositor version --- ext/wayland/wldisplay.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/wayland/wldisplay.c b/ext/wayland/wldisplay.c index 8973f79..29cf1e4 100644 --- a/ext/wayland/wldisplay.c +++ b/ext/wayland/wldisplay.c @@ -133,8 +133,8 @@ registry_handle_global (void *data, struct wl_registry *registry, GstWlDisplay *self = data; if (g_strcmp0 (interface, "wl_compositor") == 0) { - self->compositor = - wl_registry_bind (registry, id, &wl_compositor_interface, 1); + self->compositor = wl_registry_bind (registry, id, &wl_compositor_interface, + MIN (version, 3)); } else if (g_strcmp0 (interface, "wl_shell") == 0) { self->shell = wl_registry_bind (registry, id, &wl_shell_interface, 1); } else if (g_strcmp0 (interface, "wl_shm") == 0) { -- 2.7.4