diff --git a/girs/GstPbutils-1.0.gir b/girs/GstPbutils-1.0.gir
index 3d9895e514..312faed9df 100644
--- a/girs/GstPbutils-1.0.gir
+++ b/girs/GstPbutils-1.0.gir
@@ -1738,7 +1738,7 @@ subtitles), are currently ignored.
GstEncodingProfile. Refer to the encoding-profile documentation for details
on the format.
-
+
A newly created GstEncodingProfile or NULL if the
input string is not a valid encoding profile serialization format.
@@ -2197,8 +2197,7 @@ single segment before the encoder, #FALSE otherwise.
serialization format".
- A string representation of the GstEncodingProfile,
- or NULL if the input is invalid.
+ A string representation of the GstEncodingProfile.
diff --git a/subprojects/gst-plugins-base/gst-libs/gst/pbutils/encoding-profile.c b/subprojects/gst-plugins-base/gst-libs/gst/pbutils/encoding-profile.c
index e0283895d2..9328459932 100644
--- a/subprojects/gst-plugins-base/gst-libs/gst/pbutils/encoding-profile.c
+++ b/subprojects/gst-plugins-base/gst-libs/gst/pbutils/encoding-profile.c
@@ -2078,7 +2078,7 @@ error:
*
* Since: 1.26
*
- * Returns: (transfer full): A newly created GstEncodingProfile or NULL if the
+ * Returns: (transfer full) (nullable): A newly created GstEncodingProfile or NULL if the
* input string is not a valid encoding profile serialization format.
*/
GstEncodingProfile *
@@ -2178,8 +2178,7 @@ serialize_profile (GString * res, GstEncodingProfile * profile)
*
* Since: 1.26
*
- * Returns: (transfer full): A string representation of the GstEncodingProfile,
- * or NULL if the input is invalid.
+ * Returns: (transfer full): A string representation of the GstEncodingProfile.
*/
gchar *
gst_encoding_profile_to_string (GstEncodingProfile * profile)