]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gstreamer-1.0: Fix ownership of Caps.full*() parameters main staging
authorRico Tzschichholz <ricotz@ubuntu.com>
Tue, 5 Aug 2025 13:34:14 +0000 (15:34 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Tue, 5 Aug 2025 13:35:51 +0000 (15:35 +0200)
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1628

vapi/gstreamer-1.0.vapi
vapi/metadata/Gst-1.0-custom.vala
vapi/metadata/Gst-1.0.metadata

index e46217ae93932dd7ab6cc700ed20e423ba17f610..cc893a5bf6d536b1c35e3041c6632b94ed502ccc 100644 (file)
@@ -920,9 +920,9 @@ namespace Gst {
                public bool @foreach (Gst.CapsForeachFunc func);
                public static Gst.Caps? from_string (string string);
                [CCode (has_construct_function = false)]
-               public Caps.full (params Gst.Structure[] structure);
+               public Caps.full (params owned Gst.Structure[] structure);
                [CCode (has_construct_function = false)]
-               public Caps.full_valist (Gst.Structure structure, va_list var_args);
+               public Caps.full_valist (owned Gst.Structure structure, va_list var_args);
                [Version (since = "1.2")]
                public unowned Gst.CapsFeatures? get_features (uint index);
                public uint get_size ();
index 1471ed8c91b8f5785357a11de803d0524f8187d7..0433d2c9a4e95f7d6944beedea82ad0b7a66b26c 100644 (file)
@@ -31,7 +31,7 @@ namespace Gst {
        [Compact, CCode (ref_function = "gst_caps_ref", type_id = "gst_caps_get_type ()", unref_function = "gst_caps_unref")]
        public class Caps {
                [CCode (has_construct_function = false)]
-               public Caps.full (params Gst.Structure[] structure);
+               public Caps.full (params owned Gst.Structure[] structure);
        }
 
        [Compact, CCode (copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gst_caps_features_get_type ()")]
index 0cc84770dcb47f7091d487c08dc3d1017fae05b7..1afa5e72804dda47887cb4dec6660b0985f4f1ee 100644 (file)
@@ -83,6 +83,7 @@ parse_bin_from_description_full floating
 *.*_valist_* skip=false
 debug_log skip=false printf_format
 Caps
+  .new_full_valist.structure owned
   .new_simple skip=false
   .set_simple skip=false
 CapsFeatures