mpegtsdescriptor: Add (transfer none) annotation to out parameter of parse_registration()

Out parameters are (transfer full) by default.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8380>
This commit is contained in:
Sebastian Dröge 2025-01-29 19:37:39 +02:00 committed by GStreamer Marge Bot
parent e0e7a11089
commit 83e95af6e3
2 changed files with 2 additions and 2 deletions

View file

@ -2163,7 +2163,7 @@ See ISO/IEC 13818-1:2018 Section 2.6.62 and 2.6.63 for details.</doc>
<doc xml:space="preserve" filename="../subprojects/gst-plugins-bad/gst-libs/gst/mpegts/gstmpegtsdescriptor.c">The registration ID (in host endiannes)</doc>
<type name="guint32" c:type="guint32*"/>
</parameter>
<parameter name="additional_info" direction="out" caller-allocates="0" transfer-ownership="full" optional="1" allow-none="1">
<parameter name="additional_info" direction="out" caller-allocates="0" transfer-ownership="none" optional="1" allow-none="1">
<doc xml:space="preserve" filename="../subprojects/gst-plugins-bad/gst-libs/gst/mpegts/gstmpegtsdescriptor.c">The additional information</doc>
<array length="2" zero-terminated="0" c:type="guint8**">
<type name="guint8" c:type="guint8*"/>

View file

@ -914,7 +914,7 @@ gst_mpegts_descriptor_from_registration (const gchar * format_identifier,
* gst_mpegts_descriptor_parse_registration:
* @descriptor: a %GST_MTS_DESC_REGISTRATION #GstMpegtsDescriptor
* @registration_id: (out): The registration ID (in host endiannes)
* @additional_info: (out) (allow-none) (array length=additional_info_length): The additional information
* @additional_info: (out) (allow-none) (transfer none) (array length=additional_info_length): The additional information
* @additional_info_length: (out) (allow-none): The size of @additional_info in bytes.
*
* Extracts the Registration information from @descriptor.