diff --git a/girs/Gst-1.0.gir b/girs/Gst-1.0.gir
index 010c4430f2..8fbfcccd4e 100644
--- a/girs/Gst-1.0.gir
+++ b/girs/Gst-1.0.gir
@@ -2494,7 +2494,7 @@ to #GST_CLOCK_TIME_NONE and #GST_BUFFER_OFFSET_NONE.
-
+
the size to extract
diff --git a/subprojects/gstreamer/gst/gstbuffer.c b/subprojects/gstreamer/gst/gstbuffer.c
index 75b6220ba1..c41189f4e9 100644
--- a/subprojects/gstreamer/gst/gstbuffer.c
+++ b/subprojects/gstreamer/gst/gstbuffer.c
@@ -1986,7 +1986,7 @@ gst_buffer_fill (GstBuffer * buffer, gsize offset, gconstpointer src,
* @offset: the offset to extract
* @dest: (out caller-allocates) (array length=size) (element-type guint8):
* the destination address
- * @size: the size to extract
+ * @size: (in): the size to extract
*
* Copies @size bytes starting from @offset in @buffer to @dest.
*