]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gstreamer-0.10: Clean up Gst.Buffer.data binding
authorEvan Nemerson <evan@coeus-group.com>
Fri, 5 Mar 2010 21:53:25 +0000 (13:53 -0800)
committerEvan Nemerson <evan@coeus-group.com>
Fri, 5 Mar 2010 21:53:25 +0000 (13:53 -0800)
Fixes bug 610330.

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

index d0640817222554353f483bb84f4960d7ea1d042b..b0a2a5afbbf28856db9b5c2d153a49b723d7bf44 100644 (file)
@@ -64,15 +64,14 @@ namespace Gst {
        [CCode (ref_function = "gst_buffer_ref", unref_function = "gst_buffer_unref", cheader_filename = "gst/gst.h")]
        public class Buffer : Gst.MiniObject {
                public weak Gst.Caps caps;
-               [CCode (array_length = false)]
-               public weak uchar[] data;
+               [CCode (array_length_cname = "size")]
+               public weak uint8[] data;
                public Gst.ClockTime duration;
                public weak GLib.FreeFunc free_func;
                public uchar malloc_data;
                public uint64 offset;
                public uint64 offset_end;
                public weak Gst.Buffer parent;
-               public uint size;
                public Gst.ClockTime timestamp;
                public Buffer ();
                [CCode (has_construct_function = false)]
index a92931add31b83a7aea59c1dd4c7723604891444..4118d529f19e9a654cd84c5686f1d077ca81db7c 100644 (file)
@@ -23,7 +23,8 @@ gst_bin_iterate_sources transfer_ownership="1"
 gst_bin_iterate_all_by_interface transfer_ownership="1"
 gst_bin_find_unconnected_pad transfer_ownership="1"
 GstBuffer base_class="GstMiniObject"
-GstBuffer.data is_array="1"
+GstBuffer.data is_array="1" array_length_cname="size" array_length_type="guint" type_name="uint8"
+GstBuffer.size hidden="1"
 GstBuffer.mini_object hidden="1"
 GstBufferClass hidden="1"
 gst_buffer_new hidden="1"