From b7cffa4522cb45e29c97d6c3334fd118d621ae7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Zanelli?= Date: Sat, 19 Mar 2016 12:39:18 +0100 Subject: [PATCH] pad: add 'transfer full' and 'nullable' annotations to gst_pad_get_current_caps and also change the description accordingly since function returns an incremented caps object or NULL if there is no caps set. https://bugzilla.gnome.org/show_bug.cgi?id=763912 --- gst/gstpad.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst/gstpad.c b/gst/gstpad.c index f9822ea559..7c02120097 100644 --- a/gst/gstpad.c +++ b/gst/gstpad.c @@ -2632,7 +2632,8 @@ gst_pad_has_current_caps (GstPad * pad) * Gets the capabilities currently configured on @pad with the last * #GST_EVENT_CAPS event. * - * Returns: the current caps of the pad with incremented ref-count. + * Returns: (transfer full) (nullable): the current caps of the pad with + * incremented ref-count or %NULL when pad has no caps. Unref after usage. */ GstCaps * gst_pad_get_current_caps (GstPad * pad)