video: convertframe: Fix annotation of gst_video_convert_sample()

The returned sample is pulled from appsink which transfers its ownership.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4629>
This commit is contained in:
Philippe Normand 2023-05-14 13:31:55 +01:00 committed by GStreamer Marge Bot
parent a0ac1cccbf
commit b115756338
2 changed files with 2 additions and 2 deletions

View file

@ -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.</doc>
<source-position filename="../subprojects/gst-plugins-base/gst-libs/gst/video/video.h"/>
<return-value transfer-ownership="full">
<return-value transfer-ownership="full" nullable="1">
<doc xml:space="preserve" filename="../subprojects/gst-plugins-base/gst-libs/gst/video/convertframe.c">The converted #GstSample, or %NULL if an error happened (in which case @err
will point to the #GError).</doc>
<type name="Gst.Sample" c:type="GstSample*"/>

View file

@ -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 *