]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gstreamer-1.0: Unskip the ElementFactory.make/create_full() symbols
authorCorentin Noël <corentin.noel@collabora.com>
Wed, 8 Dec 2021 11:30:32 +0000 (12:30 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Wed, 15 Dec 2021 15:32:28 +0000 (16:32 +0100)
Also add floating reference to all the new creation functions.

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

index ce44cbbb7ad1d7e0d8b64f848f2de76b084728ac..9784b338db05209da3c332405896710e0e4af437 100644 (file)
@@ -1418,10 +1418,15 @@ namespace Gst {
                public bool can_src_any_caps (Gst.Caps caps);
                [CCode (returns_floating_reference = true)]
                public Gst.Element? create (string? name);
+               [CCode (returns_floating_reference = true)]
+               [Version (since = "1.20")]
+               public Gst.Element? create_full (string? first, ...);
+               [CCode (returns_floating_reference = true)]
                [Version (since = "1.20")]
-               public unowned Gst.Element? create_valist (string? first, va_list? properties);
+               public Gst.Element? create_valist (string? first, va_list? properties);
+               [CCode (returns_floating_reference = true)]
                [Version (since = "1.20")]
-               public unowned Gst.Element? create_with_properties (uint n, string? names, GLib.Value? values);
+               public Gst.Element? create_with_properties ([CCode (array_length_cname = "n", array_length_pos = 0.5, array_length_type = "guint")] string[]? names, [CCode (array_length_cname = "n", array_length_pos = 0.5, array_length_type = "guint")] GLib.Value[]? values);
                public static Gst.ElementFactory? find (string name);
                public GLib.Type get_element_type ();
                public unowned string? get_metadata (string key);
@@ -1440,10 +1445,15 @@ namespace Gst {
                public bool list_is_type (Gst.ElementFactoryListType type);
                [CCode (returns_floating_reference = true)]
                public static Gst.Element? make (string factoryname, string? name);
+               [CCode (returns_floating_reference = true)]
+               [Version (since = "1.20")]
+               public static Gst.Element? make_full (string factoryname, string? first, ...);
+               [CCode (returns_floating_reference = true)]
                [Version (since = "1.20")]
-               public static unowned Gst.Element? make_valist (string factoryname, string? first, va_list? properties);
+               public static Gst.Element? make_valist (string factoryname, string? first, va_list? properties);
+               [CCode (returns_floating_reference = true)]
                [Version (since = "1.20")]
-               public static unowned Gst.Element? make_with_properties (string factoryname, uint n, string? names, GLib.Value? values);
+               public static Gst.Element? make_with_properties (string factoryname, [CCode (array_length_cname = "n", array_length_pos = 1.5, array_length_type = "guint")] string[]? names, [CCode (array_length_cname = "n", array_length_pos = 1.5, array_length_type = "guint")] GLib.Value[]? values);
        }
        [CCode (cheader_filename = "gst/gst.h", ref_function = "gst_event_ref", type_id = "gst_event_get_type ()", unref_function = "gst_event_unref")]
        [Compact]
index db4d53fdbd50dfdfeb6444c0cbcf8806acf865a6..7c12fa4c7af198497a75f5ee727cfd3095126524 100644 (file)
@@ -59,8 +59,8 @@ BufferPool
 Element
   .add_pad.pad owned=false
 ElementFactory
-  .create floating
-  .make floating
+  .create* skip=false floating
+  .make* skip=false floating
 GhostPad
   .new floating
 Pad