docs: plugin-scanner: Minor debug enhancement

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2954>
This commit is contained in:
Thibault Saunier 2022-08-26 08:39:16 -04:00 committed by GStreamer Marge Bot
parent 1c4950718f
commit c8a9736244

View 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\": {"