From c8a97362443c00574948032a371cbe8056fa6736 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Fri, 26 Aug 2022 08:39:16 -0400 Subject: [PATCH] docs: plugin-scanner: Minor debug enhancement Part-of: --- subprojects/gstreamer/docs/gst-hotdoc-plugins-scanner.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/subprojects/gstreamer/docs/gst-hotdoc-plugins-scanner.c b/subprojects/gstreamer/docs/gst-hotdoc-plugins-scanner.c index 16054e5..f840416 100644 --- a/subprojects/gstreamer/docs/gst-hotdoc-plugins-scanner.c +++ b/subprojects/gstreamer/docs/gst-hotdoc-plugins-scanner.c @@ -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\": {" -- 2.7.4