summaryrefslogtreecommitdiff
path: root/gst-libs/gst
diff options
context:
space:
mode:
authorMichael de Gans <47511965+mdegans@users.noreply.github.com>2021-06-15 13:22:55 -0700
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2021-06-30 18:46:37 +0000
commitd8a7fc0a0bcb3578bf92986ec5e26311f7d8095d (patch)
treeb1e1047ce09653ef0c0982631f70a7670ef83523 /gst-libs/gst
parent058f1e92b73bedf65d5b81520695d80e0b5403de (diff)
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: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1203>
Diffstat (limited to 'gst-libs/gst')
-rw-r--r--gst-libs/gst/app/gstappsink.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gst-libs/gst/app/gstappsink.c b/gst-libs/gst/app/gstappsink.c
index cfcb1bf6d..fed56a5e5 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
*/