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 *