From edffae31ddcadf71f640c84b8ab397b8e784d52f Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Fri, 31 Mar 2023 16:45:47 +1100 Subject: [PATCH] vulkan/wayland: provide a dummy registry global_remove function Even if we don't care about any global objects being removed, wayland will still error if globals are removed without a corresponding listener set up for them. e.g. wl_output hotplugging Part-of: --- .../gst/vulkan/wayland/gstvkdisplay_wayland.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/wayland/gstvkdisplay_wayland.c b/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/wayland/gstvkdisplay_wayland.c index c5287c8a6f..bdc318e51f 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/wayland/gstvkdisplay_wayland.c +++ b/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/wayland/gstvkdisplay_wayland.c @@ -58,8 +58,20 @@ registry_handle_global (void *data, struct wl_registry *registry, } } +static void +registry_handle_global_remove (void *data, struct wl_registry *registry, + uint32_t name) +{ + GstVulkanDisplayWayland *window_wayland = data; + + /* TODO: deal with any registry objects that may be removed */ + GST_TRACE_OBJECT (window_wayland, "wl_registry %p global_remove %" + G_GUINT32_FORMAT, registry, name); +} + static const struct wl_registry_listener registry_listener = { - registry_handle_global + registry_handle_global, + registry_handle_global_remove, }; static void