gtksink: Fetch the default "widget" value in the docs
authorBastien Nocera <hadess@hadess.net>
Mon, 11 Oct 2021 12:27:24 +0000 (14:27 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 12 Oct 2021 20:27:34 +0000 (20:27 +0000)
There's really no interesting "widget" value that could be shown in the
docs, so use the GST_PARAM_DOC_SHOW_DEFAULT flag to avoid showing
another value.

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

subprojects/gst-plugins-good/ext/gtk/gstgtkbasesink.c

index 73a9439..3005024 100644 (file)
@@ -100,7 +100,9 @@ gst_gtk_base_sink_class_init (GstGtkBaseSinkClass * klass)
       g_param_spec_object ("widget", "Gtk Widget",
           "The GtkWidget to place in the widget hierarchy "
           "(must only be get from the GTK main thread)",
-          GTK_TYPE_WIDGET, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
+          GTK_TYPE_WIDGET,
+          G_PARAM_READABLE | G_PARAM_STATIC_STRINGS |
+          GST_PARAM_DOC_SHOW_DEFAULT));
 
   g_object_class_install_property (gobject_class, PROP_FORCE_ASPECT_RATIO,
       g_param_spec_boolean ("force-aspect-ratio",