mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-14 10:15:48 +00:00
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:
parent
4a56c82f0c
commit
1485a387a4
2 changed files with 10 additions and 8 deletions
|
@ -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">
|
||||
<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"/>
|
||||
<return-value transfer-ownership="full">
|
||||
<doc xml:space="preserve" filename="../subprojects/gst-plugins-base/gst-libs/gst/pbutils/codec-utils.c">The AV1 Codec Configuration Record, or NULL if
|
||||
there was an error.</doc>
|
||||
<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 there was an error.</doc>
|
||||
<type name="Gst.Buffer" c:type="GstBuffer*"/>
|
||||
</return-value>
|
||||
<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">
|
||||
<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"/>
|
||||
<return-value transfer-ownership="full">
|
||||
<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>
|
||||
<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>
|
||||
<type name="Gst.Caps" c:type="GstCaps*"/>
|
||||
</return-value>
|
||||
<parameters>
|
||||
|
|
|
@ -2425,7 +2425,8 @@ done:
|
|||
*
|
||||
* 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 *
|
||||
gst_codec_utils_av1_create_caps_from_av1c (GstBuffer * av1c)
|
||||
|
@ -2546,8 +2547,8 @@ done:
|
|||
*
|
||||
* Since: 1.26
|
||||
*
|
||||
* Returns: (transfer full): The AV1 Codec Configuration Record, or NULL if
|
||||
* there was an error.
|
||||
* Returns: (transfer full) (nullable): The AV1 Codec Configuration Record, or
|
||||
* %NULL if there was an error.
|
||||
*/
|
||||
|
||||
GstBuffer *
|
||||
|
|
Loading…
Reference in a new issue