From ec42cedf632ea87660bcff43ed365918adfe4f7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 30 Apr 2024 11:25:42 +0300 Subject: [PATCH] encoding-profile: Fix nullability of (de)serialization functions Part-of: --- girs/GstPbutils-1.0.gir | 5 ++--- .../gst-plugins-base/gst-libs/gst/pbutils/encoding-profile.c | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) 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)