From b1157563388206c63e9dc2db6387bf5e8a785c9c Mon Sep 17 00:00:00 2001 From: Philippe Normand Date: Sun, 14 May 2023 13:31:55 +0100 Subject: [PATCH] video: convertframe: Fix annotation of gst_video_convert_sample() The returned sample is pulled from appsink which transfers its ownership. Part-of: --- girs/GstVideo-1.0.gir | 2 +- subprojects/gst-plugins-base/gst-libs/gst/video/convertframe.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/girs/GstVideo-1.0.gir b/girs/GstVideo-1.0.gir index d20a9642d8..9fe96dd02c 100644 --- a/girs/GstVideo-1.0.gir +++ b/girs/GstVideo-1.0.gir @@ -17785,7 +17785,7 @@ The output caps can be any raw video formats or any image formats (jpeg, png, .. The width, height and pixel-aspect-ratio can also be specified in the output caps. - + The converted #GstSample, or %NULL if an error happened (in which case @err will point to the #GError). diff --git a/subprojects/gst-plugins-base/gst-libs/gst/video/convertframe.c b/subprojects/gst-plugins-base/gst-libs/gst/video/convertframe.c index 58bd3d5c40..64d6a45815 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/video/convertframe.c +++ b/subprojects/gst-plugins-base/gst-libs/gst/video/convertframe.c @@ -409,7 +409,7 @@ link_failed: * * The width, height and pixel-aspect-ratio can also be specified in the output caps. * - * Returns: The converted #GstSample, or %NULL if an error happened (in which case @err + * Returns: (nullable) (transfer full): The converted #GstSample, or %NULL if an error happened (in which case @err * will point to the #GError). */ GstSample *