summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2014-10-20 15:31:29 +0200
committerTim-Philipp Müller <tim@centricular.com>2014-10-24 20:21:53 +0100
commit53aa163facd1ea51ab35b85a5b5cb821c4d63b85 (patch)
tree2a48d907a3ffd7d4ec6e464e23045ffc310e672e
parentc7810e2c57e28b715d63f21883ae0e3af806fc71 (diff)
downloadgstreamer-plugins-base-53aa163facd1ea51ab35b85a5b5cb821c4d63b85.tar.gz
appsink: Fix gst_app_sink_pull() docs to transfer full for the return value
Also we get a GstSample, not a GstBuffer here.
-rw-r--r--gst-libs/gst/app/gstappsink.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gst-libs/gst/app/gstappsink.c b/gst-libs/gst/app/gstappsink.c
index ecec3b56f..f6408d65a 100644
--- a/gst-libs/gst/app/gstappsink.c
+++ b/gst-libs/gst/app/gstappsink.c
@@ -1093,7 +1093,8 @@ gst_app_sink_get_drop (GstAppSink * appsink)
* This function blocks until a preroll sample or EOS is received or the appsink
* element is set to the READY/NULL state.
*
- * Returns: a #GstBuffer or NULL when the appsink is stopped or EOS.
+ * Returns: (transfer full): a #GstSample or NULL when the appsink is stopped or EOS.
+ * Call gst_sample_unref() after usage.
*/
GstSample *
gst_app_sink_pull_preroll (GstAppSink * appsink)
@@ -1161,7 +1162,8 @@ not_started:
* If an EOS event was received before any buffers, this function returns
* %NULL. Use gst_app_sink_is_eos () to check for the EOS condition.
*
- * Returns: a #GstBuffer or NULL when the appsink is stopped or EOS.
+ * Returns: (transfer full): a #GstSample or NULL when the appsink is stopped or EOS.
+ * Call gst_sample_unref() after usage.
*/
GstSample *