pad: add 'transfer full' and 'nullable' annotations to gst_pad_get_current_caps
authorAurélien Zanelli <aurelien.zanelli@darkosphere.fr>
Sat, 19 Mar 2016 11:39:18 +0000 (12:39 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 21 Mar 2016 08:23:53 +0000 (10:23 +0200)
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

index f9822ea..7c02120 100644 (file)
@@ -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)