From 6e50c6c6fb2f332de9d7d01dac2e59d968b37b3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 2 Jun 2020 22:25:24 +0300 Subject: [PATCH] docs: Don't include GObject and GstPipeline signals They're already documented from elsewhere. --- docs/gst-hotdoc-plugins-scanner.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/gst-hotdoc-plugins-scanner.c b/docs/gst-hotdoc-plugins-scanner.c index 3b617c5b84..6fcd467422 100644 --- a/docs/gst-hotdoc-plugins-scanner.c +++ b/docs/gst-hotdoc-plugins-scanner.c @@ -271,7 +271,8 @@ _add_signals (GString * json, GString * other_types, } for (type = G_OBJECT_TYPE (object); type; type = g_type_parent (type)) { - if (type == GST_TYPE_ELEMENT || type == GST_TYPE_OBJECT) + if (type == GST_TYPE_ELEMENT || type == GST_TYPE_OBJECT + || type == G_TYPE_OBJECT) break; if (type == GST_TYPE_PAD) @@ -279,6 +280,9 @@ _add_signals (GString * json, GString * other_types, if (type == GST_TYPE_BIN && G_OBJECT_TYPE (object) != GST_TYPE_BIN) continue; + if (type == GST_TYPE_PIPELINE + && G_OBJECT_TYPE (object) != GST_TYPE_PIPELINE) + continue; signals = g_signal_list_ids (type, &nsignals); for (i = 0; i < nsignals; i++) { @@ -402,7 +406,7 @@ _add_properties (GString * json, GString * other_types, continue; g_value_init (&value, spec->value_type); - if (object && !!(spec->flags & G_PARAM_READABLE) && + if (object && ! !(spec->flags & G_PARAM_READABLE) && !(spec->flags & GST_PARAM_DOC_SHOW_DEFAULT)) { g_object_get_property (G_OBJECT (object), spec->name, &value); } else {