codec-utils: Add missing nullable annotation to new APIs

Those APIs are documented to sometimes return NULL.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8271>
This commit is contained in:
Olivier Crête 2025-01-09 11:08:57 -06:00 committed by GStreamer Marge Bot
parent 4a56c82f0c
commit 1485a387a4
2 changed files with 10 additions and 8 deletions

View file

@ -3169,9 +3169,9 @@ rate.</doc>
<function name="codec_utils_av1_create_av1c_from_caps" c:identifier="gst_codec_utils_av1_create_av1c_from_caps" version="1.26"> <function name="codec_utils_av1_create_av1c_from_caps" c:identifier="gst_codec_utils_av1_create_av1c_from_caps" version="1.26">
<doc xml:space="preserve" filename="../subprojects/gst-plugins-base/gst-libs/gst/pbutils/codec-utils.c">Creates the corresponding AV1 Codec Configuration Record</doc> <doc xml:space="preserve" filename="../subprojects/gst-plugins-base/gst-libs/gst/pbutils/codec-utils.c">Creates the corresponding AV1 Codec Configuration Record</doc>
<source-position filename="../subprojects/gst-plugins-base/gst-libs/gst/pbutils/codec-utils.h"/> <source-position filename="../subprojects/gst-plugins-base/gst-libs/gst/pbutils/codec-utils.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/codec-utils.c">The AV1 Codec Configuration Record, or NULL if <doc xml:space="preserve" filename="../subprojects/gst-plugins-base/gst-libs/gst/pbutils/codec-utils.c">The AV1 Codec Configuration Record, or
there was an error.</doc> %NULL if there was an error.</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/> <type name="Gst.Buffer" c:type="GstBuffer*"/>
</return-value> </return-value>
<parameters> <parameters>
@ -3184,8 +3184,9 @@ there was an error.</doc>
<function name="codec_utils_av1_create_caps_from_av1c" c:identifier="gst_codec_utils_av1_create_caps_from_av1c" version="1.26"> <function name="codec_utils_av1_create_caps_from_av1c" c:identifier="gst_codec_utils_av1_create_caps_from_av1c" version="1.26">
<doc xml:space="preserve" filename="../subprojects/gst-plugins-base/gst-libs/gst/pbutils/codec-utils.c">Parses the provided @av1c and returns the corresponding caps</doc> <doc xml:space="preserve" filename="../subprojects/gst-plugins-base/gst-libs/gst/pbutils/codec-utils.c">Parses the provided @av1c and returns the corresponding caps</doc>
<source-position filename="../subprojects/gst-plugins-base/gst-libs/gst/pbutils/codec-utils.h"/> <source-position filename="../subprojects/gst-plugins-base/gst-libs/gst/pbutils/codec-utils.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/codec-utils.c">The parsed AV1 caps, or NULL if there is an error</doc> <doc xml:space="preserve" filename="../subprojects/gst-plugins-base/gst-libs/gst/pbutils/codec-utils.c">The parsed AV1 caps, or %NULL if there
is an error</doc>
<type name="Gst.Caps" c:type="GstCaps*"/> <type name="Gst.Caps" c:type="GstCaps*"/>
</return-value> </return-value>
<parameters> <parameters>

View file

@ -2425,7 +2425,8 @@ done:
* *
* Since: 1.26 * Since: 1.26
* *
* Returns: (transfer full): The parsed AV1 caps, or NULL if there is an error * Returns: (transfer full) (nullable): The parsed AV1 caps, or %NULL if there
* is an error
*/ */
GstCaps * GstCaps *
gst_codec_utils_av1_create_caps_from_av1c (GstBuffer * av1c) gst_codec_utils_av1_create_caps_from_av1c (GstBuffer * av1c)
@ -2546,8 +2547,8 @@ done:
* *
* Since: 1.26 * Since: 1.26
* *
* Returns: (transfer full): The AV1 Codec Configuration Record, or NULL if * Returns: (transfer full) (nullable): The AV1 Codec Configuration Record, or
* there was an error. * %NULL if there was an error.
*/ */
GstBuffer * GstBuffer *