diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/wayland/gstwldisplay.c b/subprojects/gst-plugins-bad/gst-libs/gst/wayland/gstwldisplay.c index 8d386593a6..9119f1df77 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/wayland/gstwldisplay.c +++ b/subprojects/gst-plugins-bad/gst-libs/gst/wayland/gstwldisplay.c @@ -427,7 +427,12 @@ gst_wl_display_new_existing (struct wl_display *display, priv->display_wrapper = wl_proxy_create_wrapper (display); priv->own_display = take_ownership; +#ifdef HAVE_WL_EVENT_QUEUE_NAME + priv->queue = wl_display_create_queue_with_name (priv->display, + "GStreamer display queue"); +#else priv->queue = wl_display_create_queue (priv->display); +#endif wl_proxy_set_queue ((struct wl_proxy *) priv->display_wrapper, priv->queue); priv->registry = wl_display_get_registry (priv->display_wrapper); wl_registry_add_listener (priv->registry, ®istry_listener, self); diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/wayland/meson.build b/subprojects/gst-plugins-bad/gst-libs/gst/wayland/meson.build index 0a5e4dd450..75251dbeac 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/wayland/meson.build +++ b/subprojects/gst-plugins-bad/gst-libs/gst/wayland/meson.build @@ -86,6 +86,10 @@ if use_wayland '-D_GNU_SOURCE' ] + if wl_client_dep.version().version_compare('>= 1.22.91') + extra_c_args += [ '-DHAVE_WL_EVENT_QUEUE_NAME' ] + endif + gstwayland = library('gstwayland-' + api_version, wl_sources + protocols_files, c_args : gst_plugins_bad_args + extra_c_args,