]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gstreamer-0.10: Add returns_floating_reference to ElementFactory methods
authorFabian Deutsch <fabian.deutsch@gmx.de>
Fri, 4 Nov 2011 09:11:11 +0000 (10:11 +0100)
committerJürg Billeter <j@bitron.ch>
Wed, 30 Nov 2011 13:54:35 +0000 (14:54 +0100)
Fixes bug 663145.

vapi/gstreamer-0.10.vapi
vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala
vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata

index 50fc769d7676f559210627c77693b1bb3df40440..fed7e7139c082bd81140a21f8604efc7099106e9 100644 (file)
@@ -512,6 +512,7 @@ namespace Gst {
                public bool can_src_all_caps (Gst.Caps caps);
                public bool can_src_any_caps (Gst.Caps caps);
                public bool can_src_caps (Gst.Caps caps);
+               [CCode (returns_floating_reference = true)]
                public Gst.Element? create (string? name);
                public static Gst.ElementFactory? find (string name);
                public unowned string get_author ();
@@ -530,6 +531,7 @@ namespace Gst {
                public static unowned GLib.List list_filter (GLib.List list, Gst.Caps caps, Gst.PadDirection direction, bool subsetonly);
                public static unowned GLib.List list_get_elements (Gst.ElementFactoryListType type, Gst.Rank minrank);
                public bool list_is_type (Gst.ElementFactoryListType type);
+               [CCode (returns_floating_reference = true)]
                public static Gst.Element? make (string factoryname, string? name);
        }
        [CCode (cheader_filename = "gst/gst.h")]
index 9da556398779c544a9438b47c3d78446e7cd7fd0..9f0f449512040679b1a65aa886217dc45f2d1606 100644 (file)
@@ -219,6 +219,13 @@ namespace Gst {
                public State target_state;
        }
 
+       public class ElementFactory {
+               [CCode (returns_floating_reference = true)]
+               public Gst.Element? create (string? name);
+               [CCode (returns_floating_reference = true)]
+               public static Gst.Element? make (string factoryname, string? name);
+       }
+
        [CCode (cheader_filename = "gst/gst.h")]
        public class Pad {
                [CCode (cname = "gst_pad_add_buffer_probe_full")]
index 13bd561ec1eedb62628ffb2e40b27d060c580c93..ebd2f9a4307294c1ea2615e8f8245415d208c3f1 100644 (file)
@@ -165,10 +165,8 @@ gst_element_message_full.text transfer_ownership="1" nullable="1"
 gst_element_message_full.debug transfer_ownership="1" nullable="1"
 GstElementDetails is_value_type="1"
 GstElementFactory.* hidden="1"
-gst_element_factory_make transfer_ownership="1" nullable="1"
-gst_element_factory_make.name nullable="1"
-gst_element_factory_create transfer_ownership="1" nullable="1"
-gst_element_factory_create.name nullable="1"
+gst_element_factory_make hidden="1"
+gst_element_factory_create hidden="1"
 gst_element_factory_get_static_pad_templates type_arguments="StaticPadTemplate"
 gst_element_factory_find transfer_ownership="1" nullable="1"
 gst_element_factory_get_uri_protocols is_array="1" array_null_terminated="1" transfer_ownership="1" nullable="1"