mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 07:38:16 +00:00
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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6396>
This commit is contained in:
parent
1eb5217fd1
commit
7d7ad5682b
1 changed files with 13 additions and 1 deletions
|
@ -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 = {
|
static const struct wl_registry_listener registry_listener = {
|
||||||
registry_handle_global
|
registry_handle_global,
|
||||||
|
registry_handle_global_remove,
|
||||||
};
|
};
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in a new issue