encoding-profile: Fix nullability of (de)serialization functions

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6775>
This commit is contained in:
Sebastian Dröge 2024-04-30 11:25:42 +03:00 committed by GStreamer Marge Bot
parent bfb7cf7d0b
commit ec42cedf63
2 changed files with 4 additions and 6 deletions

View file

@ -1738,7 +1738,7 @@ subtitles), are currently ignored.</doc>
GstEncodingProfile. Refer to the encoding-profile documentation for details GstEncodingProfile. Refer to the encoding-profile documentation for details
on the format.</doc> on the format.</doc>
<source-position filename="../subprojects/gst-plugins-base/gst-libs/gst/pbutils/encoding-profile.h"/> <source-position filename="../subprojects/gst-plugins-base/gst-libs/gst/pbutils/encoding-profile.h"/>
<return-value transfer-ownership="full"> <return-value transfer-ownership="full" nullable="1">
<doc xml:space="preserve" filename="../subprojects/gst-plugins-base/gst-libs/gst/pbutils/encoding-profile.c">A newly created GstEncodingProfile or NULL if the <doc xml:space="preserve" filename="../subprojects/gst-plugins-base/gst-libs/gst/pbutils/encoding-profile.c">A newly created GstEncodingProfile or NULL if the
input string is not a valid encoding profile serialization format.</doc> input string is not a valid encoding profile serialization format.</doc>
<type name="EncodingProfile" c:type="GstEncodingProfile*"/> <type name="EncodingProfile" c:type="GstEncodingProfile*"/>
@ -2197,8 +2197,7 @@ single segment before the encoder, #FALSE otherwise.</doc>
serialization format".</doc> serialization format".</doc>
<source-position filename="../subprojects/gst-plugins-base/gst-libs/gst/pbutils/encoding-profile.h"/> <source-position filename="../subprojects/gst-plugins-base/gst-libs/gst/pbutils/encoding-profile.h"/>
<return-value transfer-ownership="full"> <return-value transfer-ownership="full">
<doc xml:space="preserve" filename="../subprojects/gst-plugins-base/gst-libs/gst/pbutils/encoding-profile.c">A string representation of the GstEncodingProfile, <doc xml:space="preserve" filename="../subprojects/gst-plugins-base/gst-libs/gst/pbutils/encoding-profile.c">A string representation of the GstEncodingProfile.</doc>
or NULL if the input is invalid.</doc>
<type name="utf8" c:type="gchar*"/> <type name="utf8" c:type="gchar*"/>
</return-value> </return-value>
<parameters> <parameters>

View file

@ -2078,7 +2078,7 @@ error:
* *
* Since: 1.26 * 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. * input string is not a valid encoding profile serialization format.
*/ */
GstEncodingProfile * GstEncodingProfile *
@ -2178,8 +2178,7 @@ serialize_profile (GString * res, GstEncodingProfile * profile)
* *
* Since: 1.26 * Since: 1.26
* *
* Returns: (transfer full): A string representation of the GstEncodingProfile, * Returns: (transfer full): A string representation of the GstEncodingProfile.
* or NULL if the input is invalid.
*/ */
gchar * gchar *
gst_encoding_profile_to_string (GstEncodingProfile * profile) gst_encoding_profile_to_string (GstEncodingProfile * profile)