mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
waylandsink/wldisplay: bind to the latest available wl_compositor version
This commit is contained in:
parent
c015a96dda
commit
ec18fe8965
1 changed files with 2 additions and 2 deletions
|
@ -133,8 +133,8 @@ registry_handle_global (void *data, struct wl_registry *registry,
|
||||||
GstWlDisplay *self = data;
|
GstWlDisplay *self = data;
|
||||||
|
|
||||||
if (g_strcmp0 (interface, "wl_compositor") == 0) {
|
if (g_strcmp0 (interface, "wl_compositor") == 0) {
|
||||||
self->compositor =
|
self->compositor = wl_registry_bind (registry, id, &wl_compositor_interface,
|
||||||
wl_registry_bind (registry, id, &wl_compositor_interface, 1);
|
MIN (version, 3));
|
||||||
} else if (g_strcmp0 (interface, "wl_shell") == 0) {
|
} else if (g_strcmp0 (interface, "wl_shell") == 0) {
|
||||||
self->shell = wl_registry_bind (registry, id, &wl_shell_interface, 1);
|
self->shell = wl_registry_bind (registry, id, &wl_shell_interface, 1);
|
||||||
} else if (g_strcmp0 (interface, "wl_shm") == 0) {
|
} else if (g_strcmp0 (interface, "wl_shm") == 0) {
|
||||||
|
|
Loading…
Reference in a new issue