diff --git a/girs/GstVa-1.0.gir b/girs/GstVa-1.0.gir
index 49f671b4cd..454573e799 100644
--- a/girs/GstVa-1.0.gir
+++ b/girs/GstVa-1.0.gir
@@ -833,7 +833,7 @@ the most widely used VA drivers.
a #GstBufferPool
-
+
the declared surface size
diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/va/gstvapool.c b/subprojects/gst-plugins-bad/gst-libs/gst/va/gstvapool.c
index 2530cf1fbb..b55fc2bb53 100644
--- a/subprojects/gst-plugins-bad/gst-libs/gst/va/gstvapool.c
+++ b/subprojects/gst-plugins-bad/gst-libs/gst/va/gstvapool.c
@@ -514,7 +514,7 @@ gst_va_pool_new_with_config (GstCaps * caps, guint min_buffers,
/**
* gst_va_pool_get_buffer_size:
* @pool: a #GstBufferPool
- * @size: (out) (allow-null-none): the declared surface size
+ * @size: (out) (allow-none): the declared surface size
*
* Helper function to retrieve the VA surface size provided by @pool.
*