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
This commit is contained in:
Aurélien Zanelli 2016-03-19 12:39:18 +01:00 committed by Sebastian Dröge
parent 53f2fb93e8
commit b7cffa4522

View 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)