From a0ac1cccbf418f7c1a0cfd718edd636fbbb81d45 Mon Sep 17 00:00:00 2001 From: Philippe Normand Date: Sun, 14 May 2023 13:29:23 +0100 Subject: [PATCH] appsink: Adjust annotations of pull- signals Part-of: --- girs/GstApp-1.0.gir | 7 ++++--- subprojects/gst-plugins-base/gst-libs/gst/app/gstappsink.c | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/girs/GstApp-1.0.gir b/girs/GstApp-1.0.gir index e233663eec..fb8d58387c 100644 --- a/girs/GstApp-1.0.gir +++ b/girs/GstApp-1.0.gir @@ -870,7 +870,7 @@ If an EOS event was received before any buffers, this function returns This function blocks until a preroll sample or EOS is received or the appsink element is set to the READY/NULL state. - a #GstSample or NULL when the appsink is stopped or EOS. + a #GstSample or %NULL when the appsink is stopped or EOS. @@ -890,7 +890,7 @@ the "drop" and "max-buffers" properties. 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. - a #GstSample or NULL when the appsink is stopped or EOS. + a #GstSample or %NULL when the appsink is stopped or EOS. @@ -949,7 +949,8 @@ condition. This function blocks until a preroll sample or EOS is received, the appsink element is set to the READY/NULL state, or the timeout expires. - a #GstSample or NULL when the appsink is stopped or EOS or the timeout expires. + a #GstSample or %NULL when the appsink +is stopped or EOS or the timeout expires. diff --git a/subprojects/gst-plugins-base/gst-libs/gst/app/gstappsink.c b/subprojects/gst-plugins-base/gst-libs/gst/app/gstappsink.c index 28da39381d..912a3a9eb4 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/app/gstappsink.c +++ b/subprojects/gst-plugins-base/gst-libs/gst/app/gstappsink.c @@ -405,7 +405,7 @@ gst_app_sink_class_init (GstAppSinkClass * klass) * This function blocks until a preroll sample or EOS is received or the appsink * element is set to the READY/NULL state. * - * Returns: (nullable): a #GstSample or NULL when the appsink is stopped or EOS. + * Returns: (nullable) (transfer full): a #GstSample or %NULL when the appsink is stopped or EOS. */ gst_app_sink_signals[SIGNAL_PULL_PREROLL] = g_signal_new ("pull-preroll", G_TYPE_FROM_CLASS (klass), @@ -430,7 +430,7 @@ gst_app_sink_class_init (GstAppSinkClass * klass) * 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: (nullable): a #GstSample or NULL when the appsink is stopped or EOS. + * Returns: (nullable) (transfer full): a #GstSample or %NULL when the appsink is stopped or EOS. */ gst_app_sink_signals[SIGNAL_PULL_SAMPLE] = g_signal_new ("pull-sample", G_TYPE_FROM_CLASS (klass), @@ -462,7 +462,8 @@ gst_app_sink_class_init (GstAppSinkClass * klass) * This function blocks until a preroll sample or EOS is received, the appsink * element is set to the READY/NULL state, or the timeout expires. * - * Returns: (nullable): a #GstSample or NULL when the appsink is stopped or EOS or the timeout expires. + * Returns: (nullable) (transfer full): a #GstSample or %NULL when the appsink + * is stopped or EOS or the timeout expires. * * Since: 1.10 */