docs: plugin-scanner: Stop updating "long-name" metadata
authorSeungha Yang <seungha@centricular.com>
Mon, 17 Oct 2022 18:08:44 +0000 (03:08 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 20 Oct 2022 10:38:19 +0000 (10:38 +0000)
The "long-name" value can be environment dependent, and it's not
actually used by our documentation.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3208>

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

index f8404162d4a7ef9c46c2911894c8034152c6ff87..239d16d9650d313d1590ea61a39e7770ef85edb3 100644 (file)
@@ -752,6 +752,10 @@ _add_factory_details (GString * json, GstElementFactory * factory)
       gchar *val;
       gchar *key = *k;
 
+      /* "long-name" can be varying depending on environment, skip this */
+      if (g_strcmp0 (key, "long-name") == 0)
+        continue;
+
       val = json_strescape (gst_element_factory_get_metadata (factory, key));
       g_string_append_printf (json, "%s\"%s\": \"%s\"", f ? "" : ",", key, val);
       f = FALSE;