docs: plugin-scanner: Minor debug enhancement
authorThibault Saunier <tsaunier@igalia.com>
Fri, 26 Aug 2022 12:39:16 +0000 (08:39 -0400)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 15 Sep 2022 20:11:46 +0000 (20:11 +0000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2954>

subprojects/gstreamer/docs/gst-hotdoc-plugins-scanner.c

index 16054e5..f840416 100644 (file)
@@ -823,7 +823,8 @@ _add_element_details (GString * json, GString * other_types,
       gst_element_factory_create (GST_ELEMENT_FACTORY (feature), NULL);
   char s[20];
 
-  g_assert (element);
+  if (!element)
+    g_error ("Couldn't not make `%s`", GST_OBJECT_NAME (feature));
 
   g_string_append_printf (json,
       "\"%s\": {"