autodetect: mark filter-caps property as DOC_SHOW_DEFAULT
authorMathieu Duponchelle <mathieu@centricular.com>
Wed, 24 Jun 2020 15:04:51 +0000 (17:04 +0200)
committerMathieu Duponchelle <mathieu@centricular.com>
Wed, 24 Jun 2020 15:04:51 +0000 (17:04 +0200)
When generating the cache we inspect the base class through
an instance of one of its subclasses. We don't want potential
assignments in subclasses initialization to leak into the
base class documentation

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/641>

docs/gst_plugins_cache.json
gst/autodetect/gstautodetect.c

index 6bc6ef6..7b31527 100644 (file)
                         "construct": false,
                         "construct-only": false,
                         "controllable": false,
-                        "default": "audio/x-raw",
                         "mutable": "null",
                         "readable": true,
                         "type": "GstCaps",
index 8bfc530..d6224fa 100644 (file)
@@ -84,7 +84,8 @@ gst_auto_detect_class_init (GstAutoDetectClass * klass)
   g_object_class_install_property (gobject_class, PROP_CAPS,
       g_param_spec_boxed ("filter-caps", "Filter caps",
           "Filter sink candidates using these caps.", GST_TYPE_CAPS,
-          G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
+          G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS |
+          GST_PARAM_DOC_SHOW_DEFAULT));
 
   g_object_class_install_property (gobject_class, PROP_SYNC,
       g_param_spec_boolean ("sync", "Sync",