]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gstreamer-1.0: remove owned to floating reference parameters
authorLuca Bruno <luca.bruno@immobiliare.it>
Mon, 13 Oct 2014 09:41:37 +0000 (11:41 +0200)
committerLuca Bruno <luca.bruno@immobiliare.it>
Mon, 13 Oct 2014 09:45:43 +0000 (11:45 +0200)
Commit 6296d34707 (bug 730983) added the owned
keyword back without any reason.

Fixes bug 738012

(cherry picked from commit afb3846cb9b89bc154d9d774dc500fb2bce55d7a)

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

index 73a42c9240c3ebeb972bd7de7683138d925f32f4..92909bdc5ac81cea06f79673a784d3c23296ac1b 100644 (file)
@@ -540,10 +540,10 @@ namespace Gst {
                public bool state_dirty;
                [CCode (has_construct_function = false, returns_floating_reference = true, type = "GstElement*")]
                public Bin (string? name);
-               public bool add (owned Gst.Element element);
+               public bool add (Gst.Element element);
                [NoWrapper]
                public virtual bool add_element (Gst.Element element);
-               public void add_many (params owned Gst.Element[] elements);
+               public void add_many (params Gst.Element[] elements);
                public Gst.Pad? find_unlinked_pad (Gst.PadDirection direction);
                public Gst.Element get_by_interface (GLib.Type iface);
                public Gst.Element? get_by_name (string name);
@@ -560,7 +560,7 @@ namespace Gst {
                public bool remove (Gst.Element element);
                [NoWrapper]
                public virtual bool remove_element (Gst.Element element);
-               public void remove_many (params owned Gst.Element[] elements);
+               public void remove_many (params Gst.Element[] elements);
                [NoAccessorMethod]
                public bool async_handling { get; set; }
                [NoAccessorMethod]
@@ -1017,7 +1017,7 @@ namespace Gst {
                public void abort_state ();
                [CCode (cname = "gst_element_class_add_metadata")]
                public class void add_metadata (string key, string value);
-               public bool add_pad (owned Gst.Pad pad);
+               public bool add_pad (Gst.Pad pad);
                [CCode (cname = "gst_element_class_add_pad_template")]
                public class void add_pad_template (owned Gst.PadTemplate templ);
                [CCode (cname = "gst_element_class_add_static_metadata")]
index eb057866ccd6cb98d05edeb8f896d2f0156e287b..2c7c38a196243a5c749f0b10dd670e1f542458f9 100644 (file)
@@ -5,8 +5,8 @@ namespace Gst {
 
        [CCode (type_id = "gst_bin_get_type ()")]
        public class Bin : Gst.Element {
-               public void add_many (params owned Gst.Element[] elements);
-               public void remove_many (params owned Gst.Element[] elements);
+               public void add_many (params Gst.Element[] elements);
+               public void remove_many (params Gst.Element[] elements);
   }
 
        [Compact, CCode (ref_function = "gst_buffer_ref", type_id = "gst_buffer_get_type ()", unref_function = "gst_buffer_unref")]
index 1ce162dd7e00d74ea66e4c675412e6539dc4b048..ff7fb282cfe809046239920aeebe9a63998f147a 100644 (file)
@@ -37,11 +37,14 @@ init_get_option_group skip=false
 init.argv unowned
 init_check.argv unowned
 
-// Floating references (bug #657202)
+// Floating references (bug #657202 and bug #702969)
 Bin
   .new floating
+  .add.element owned=false
 BufferPool
   .new floating
+Element
+  .add_pad.pad owned=false
 ElementFactory
   .create floating
   .make floating