From d8a7fc0a0bcb3578bf92986ec5e26311f7d8095d Mon Sep 17 00:00:00 2001 From: Michael de Gans <47511965+mdegans@users.noreply.github.com> Date: Tue, 15 Jun 2021 13:22:55 -0700 Subject: [PATCH] appsink: fix incorrect return nullability This commit fixes the annoations for return nullability on several GstAppSink functions. This was causing bindings to be generated incorrectly. Fixes #914 Part-of: --- gst-libs/gst/app/gstappsink.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gst-libs/gst/app/gstappsink.c b/gst-libs/gst/app/gstappsink.c index cfcb1bf6d2..fed56a5e5f 100644 --- a/gst-libs/gst/app/gstappsink.c +++ b/gst-libs/gst/app/gstappsink.c @@ -1499,7 +1499,7 @@ gst_app_sink_get_wait_on_eos (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: (transfer full): a #GstSample or NULL when the appsink is stopped or EOS. + * Returns: (transfer full) (nullable): a #GstSample or NULL when the appsink is stopped or EOS. * Call gst_sample_unref() after usage. */ GstSample * @@ -1524,7 +1524,7 @@ gst_app_sink_pull_preroll (GstAppSink * appsink) * 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: (transfer full): a #GstSample or NULL when the appsink is stopped or EOS. + * Returns: (transfer full) (nullable): a #GstSample or NULL when the appsink is stopped or EOS. * Call gst_sample_unref() after usage. */ GstSample * @@ -1558,7 +1558,7 @@ gst_app_sink_pull_sample (GstAppSink * appsink) * 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: (transfer full): a #GstSample or NULL when the appsink is stopped or EOS or the timeout expires. + * Returns: (transfer full) (nullable): a #GstSample or NULL when the appsink is stopped or EOS or the timeout expires. * Call gst_sample_unref() after usage. * * Since: 1.10 @@ -1654,8 +1654,8 @@ not_started: * this function returns %NULL. Use gst_app_sink_is_eos () to check for the EOS * condition. * - * Returns: (transfer full): a #GstSample or NULL when the appsink is stopped or EOS or the timeout expires. - * Call gst_sample_unref() after usage. + * Returns: (transfer full) (nullable): a #GstSample or NULL when the appsink is stopped or EOS or the timeout expires. + * Call gst_sample_unref() after usage. * * Since: 1.10 */