Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/GStreamer/gstreamer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurélien Zanelli <aurelien.zanelli@darkosphere.fr>2016-03-19 14:39:18 +0300
committerTim-Philipp Müller <tim@centricular.com>2016-04-06 14:34:13 +0300
commit8205b45076f0a868f3c9a719e15c7a53dd4be9f6 (patch)
tree5205a8e9148318a9ea1aee4fd4047afc97c5f2c2
parent11d483514ae9395853bb6299be55818c6d77f816 (diff)
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
-rw-r--r--gst/gstpad.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/gstpad.c b/gst/gstpad.c
index 7f1cb1db2e..ab598b9760 100644
--- a/gst/gstpad.c
+++ b/gst/gstpad.c
@@ -2568,7 +2568,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)