From: Corentin Noël Date: Wed, 8 Dec 2021 11:30:32 +0000 (+0100) Subject: gstreamer-1.0: Unskip the ElementFactory.make/create_full() symbols X-Git-Tag: 0.55.1~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5db45783217489f4f4b1fc2344939873cc0152f;p=thirdparty%2Fvala.git gstreamer-1.0: Unskip the ElementFactory.make/create_full() symbols Also add floating reference to all the new creation functions. --- diff --git a/vapi/gstreamer-1.0.vapi b/vapi/gstreamer-1.0.vapi index ce44cbbb7..9784b338d 100644 --- a/vapi/gstreamer-1.0.vapi +++ b/vapi/gstreamer-1.0.vapi @@ -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] diff --git a/vapi/metadata/Gst-1.0.metadata b/vapi/metadata/Gst-1.0.metadata index db4d53fdb..7c12fa4c7 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