]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gstreamer-1.0: Fix bindings of Buffer.new_wrapped_full / Memory.new_wrapped
authorRico Tzschichholz <ricotz@ubuntu.com>
Mon, 23 Nov 2015 23:08:56 +0000 (00:08 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Mon, 23 Nov 2015 23:08:56 +0000 (00:08 +0100)
vapi/gstreamer-1.0.vapi
vapi/metadata/Gst-1.0-custom.vala
vapi/metadata/Gst-1.0.metadata

index 150955fcfe3d65d2b2fa06701ffde269e28c61d7..f721f847172bab41524e664e22b67f9344641c28 100644 (file)
@@ -644,7 +644,7 @@ namespace Gst {
                public size_t memset (size_t offset, uint8 val, size_t size);
                public uint n_memory ();
                [CCode (has_construct_function = false, simple_generics = true)]
-               public static Gst.Buffer new_wrapped_full<T> (Gst.MemoryFlags flags, [CCode (array_length_cname = "size", array_length_pos = 4.5, array_length_type = "gsize")] uint8[] data, size_t maxsize, size_t offset, owned T user_data);
+               public static Gst.Buffer new_wrapped_full<T> (Gst.MemoryFlags flags, [CCode (array_length_cname = "maxsize", array_length_pos = 2.5, array_length_type = "gsize")] uint8[] data, size_t offset, size_t size, owned T user_data);
                public unowned Gst.Memory peek_memory (uint idx);
                public void prepend_memory (owned Gst.Memory mem);
                public void remove_all_memory ();
@@ -1334,11 +1334,11 @@ namespace Gst {
                public bool is_type (string mem_type);
                public Gst.Memory? make_mapped (out Gst.MapInfo info, Gst.MapFlags flags);
                public bool map (out Gst.MapInfo info, Gst.MapFlags flags);
+               [CCode (has_construct_function = false, simple_generics = true)]
+               public static Gst.Memory new_wrapped<T> (Gst.MemoryFlags flags, [CCode (array_length_cname = "maxsize", array_length_pos = 2.5, array_length_type = "gsize")] uint8[] data, size_t offset, size_t size, owned T user_data);
                public void resize (ssize_t offset, size_t size);
                public Gst.Memory share (ssize_t offset, ssize_t size);
                public void unmap (Gst.MapInfo info);
-               [CCode (has_construct_function = false)]
-               public Memory.wrapped (Gst.MemoryFlags flags, [CCode (array_length_cname = "size", array_length_pos = 4.33333, array_length_type = "gsize")] uint8[] data, size_t maxsize, size_t offset, [CCode (delegate_target_pos = 4.66667)] GLib.DestroyNotify? notify);
        }
        [CCode (cheader_filename = "gst/gst.h", ref_function = "gst_message_ref", type_id = "gst_message_get_type ()", unref_function = "gst_message_unref")]
        [Compact]
index 6834497d1156f757c7e6537ff0d88b96e7e8637d..87467efaded59402472fb9acec50acd9cf235fe9 100644 (file)
@@ -12,7 +12,7 @@ namespace Gst {
        [Compact, CCode (ref_function = "gst_buffer_ref", type_id = "gst_buffer_get_type ()", unref_function = "gst_buffer_unref")]
        public class Buffer {
                [CCode (has_construct_function = false, simple_generics = true)]
-               public static Buffer new_wrapped_full<T> (Gst.MemoryFlags flags, [CCode (array_length_cname = "size", array_length_pos = 4.5, array_length_type = "gsize")] uint8[] data, size_t maxsize, size_t offset, owned T user_data);
+               public static Buffer new_wrapped_full<T> (Gst.MemoryFlags flags, [CCode (array_length_cname = "maxsize", array_length_pos = 2.5, array_length_type = "gsize")] uint8[] data, size_t offset, size_t size, owned T user_data);
                [CCode (instance_pos= 1.9)]
                public bool copy_into (Gst.Buffer dst, Gst.BufferCopyFlags flags, size_t offset, size_t size);
        }
@@ -70,6 +70,8 @@ namespace Gst {
 
        [Compact, CCode (ref_function = "gst_memory_ref", type_id = "gst_memory_get_type ()", unref_function = "gst_memory_unref")]
        public class Memory {
+               [CCode (has_construct_function = false, simple_generics = true)]
+               public static Memory new_wrapped<T> (Gst.MemoryFlags flags, [CCode (array_length_cname = "maxsize", array_length_pos = 2.5, array_length_type = "gsize")] uint8[] data, size_t offset, size_t size, owned T user_data);
        }
 
        [Compact, CCode (ref_function = "gst_message_ref", type_id = "gst_message_get_type ()", unref_function = "gst_message_unref")]
index 3da0b0f33d2e755cf965f177ac3c3129745a08bf..7986226fc8fc23ca71b50eb26ece14f804901120 100644 (file)
@@ -113,6 +113,8 @@ Buffer
 Iterator
   .filter skip
   .find_custom skip
+Memory
+  .new_wrapped skip
 
 // Rename *_full functions
 Bus