gst-inspect: Don't print link to doc if it's known to be unavailable
authorSeungha Yang <seungha@centricular.com>
Fri, 21 Oct 2022 20:29:59 +0000 (05:29 +0900)
committerSeungha Yang <seungha@centricular.com>
Fri, 21 Oct 2022 20:36:38 +0000 (05:36 +0900)
"gst_element_factory_get_skip_documentation() == true" means
documentation was intentionally skipped for the element feature

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

subprojects/gstreamer/tools/gst-inspect.c

index 95aa7eb..c6469e0 100644 (file)
@@ -281,7 +281,8 @@ print_factory_details_info (GstElementFactory * factory, GstPlugin * plugin)
     g_strfreev (keys);
   }
 
-  if (!seen_doc_uri && plugin != NULL) {
+  if (!seen_doc_uri && plugin != NULL &&
+      !gst_element_factory_get_skip_documentation (factory)) {
     const gchar *module = gst_plugin_get_source (plugin);
 
     if (g_strv_contains (gstreamer_modules, module)) {