From 6129d1bd18c972242156ba787475c82d48f3bfbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 20 Oct 2014 15:31:29 +0200 Subject: [PATCH] appsink: Fix gst_app_sink_pull() docs to transfer full for the return value Also we get a GstSample, not a GstBuffer here. --- gst-libs/gst/app/gstappsink.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gst-libs/gst/app/gstappsink.c b/gst-libs/gst/app/gstappsink.c index ecec3b56f1..f6408d65af 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 *