[vala/0.54] gstreamer-1.0: Unskip the ElementFactory.make/create_full() symbols



commit a8290c6294a81940784062204eebc844e025a2e0
Author: Corentin Noël <corentin noel collabora com>
Date:   Wed Dec 8 12:30:32 2021 +0100

    gstreamer-1.0: Unskip the ElementFactory.make/create_full() symbols
    
    Also add floating reference to all the new creation functions.

 vapi/gstreamer-1.0.vapi        | 18 ++++++++++++++----
 vapi/metadata/Gst-1.0.metadata |  4 ++--
 2 files changed, 16 insertions(+), 6 deletions(-)
---
diff --git a/vapi/gstreamer-1.0.vapi b/vapi/gstreamer-1.0.vapi
index b7f77f86f..5de95b2ee 100644
--- a/vapi/gstreamer-1.0.vapi
+++ b/vapi/gstreamer-1.0.vapi
@@ -1399,10 +1399,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);
@@ -1419,10 +1424,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]
diff --git a/vapi/metadata/Gst-1.0.metadata b/vapi/metadata/Gst-1.0.metadata
index a6f9c93b5..c219f62dd 100644
--- a/vapi/metadata/Gst-1.0.metadata
+++ b/vapi/metadata/Gst-1.0.metadata
@@ -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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]