waylandsink: add wl_registry.global_remove listener
authorHaihua Hu <jared.hu@nxp.com>
Tue, 9 Jun 2020 02:53:17 +0000 (10:53 +0800)
committerNicolas Dufresne <nicolas@ndufresne.ca>
Tue, 9 Jun 2020 19:54:24 +0000 (19:54 +0000)
when hotplug display, wayland client will call this listener
to notify client do clean up. Temporarily set a dummy function
here to avoid app abort

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1327>

ext/wayland/wldisplay.c

index 9400095..f7115d5 100644 (file)
@@ -234,8 +234,16 @@ registry_handle_global (void *data, struct wl_registry *registry,
   }
 }
 
+static void
+registry_handle_global_remove (void *data, struct wl_registry *registry,
+    uint32_t name)
+{
+  /* temporarily do nothing */
+}
+
 static const struct wl_registry_listener registry_listener = {
-  registry_handle_global
+  registry_handle_global,
+  registry_handle_global_remove
 };
 
 static gpointer