]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gstreamer-base-1.0: Some parameter fixes
authorRico Tzschichholz <ricotz@ubuntu.com>
Tue, 23 Nov 2021 10:06:36 +0000 (11:06 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Mon, 29 Nov 2021 12:05:53 +0000 (13:05 +0100)
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1255

vapi/gstreamer-base-1.0.vapi
vapi/metadata/GstBase-1.0.metadata

index e7ab058884a16ad28178703efa60f00fb64c51cd..2aad7061dac210bc74b0b995b0a760842ceb512e 100644 (file)
@@ -510,7 +510,7 @@ namespace Gst {
                        protected Parse ();
                        public bool add_index_entry (uint64 offset, Gst.ClockTime ts, bool key, bool force);
                        [NoWrapper]
-                       public virtual bool convert (Gst.Format src_format, int64 src_value, Gst.Format dest_format, int64 dest_value);
+                       public virtual bool convert (Gst.Format src_format, int64 src_value, Gst.Format dest_format, out int64 dest_value);
                        public bool convert_default (Gst.Format src_format, int64 src_value, Gst.Format dest_format, out int64 dest_value);
                        [NoWrapper]
                        public virtual Gst.FlowReturn detect (Gst.Buffer buffer);
@@ -520,7 +520,7 @@ namespace Gst {
                        [NoWrapper]
                        public virtual Gst.Caps get_sink_caps (Gst.Caps filter);
                        [NoWrapper]
-                       public virtual Gst.FlowReturn handle_frame (Gst.Base.ParseFrame frame, int skipsize);
+                       public virtual Gst.FlowReturn handle_frame (Gst.Base.ParseFrame frame, out int skipsize);
                        [Version (since = "1.6")]
                        public void merge_tags (Gst.TagList? tags, Gst.TagMergeMode mode);
                        [NoWrapper]
@@ -626,7 +626,7 @@ namespace Gst {
                        public bool get_sync ();
                        public uint64 get_throttle_time ();
                        [NoWrapper]
-                       public virtual void get_times (Gst.Buffer buffer, Gst.ClockTime start, Gst.ClockTime end);
+                       public virtual void get_times (Gst.Buffer buffer, out Gst.ClockTime start, out Gst.ClockTime end);
                        public Gst.ClockTimeDiff get_ts_offset ();
                        public bool is_async_enabled ();
                        public bool is_last_sample_enabled ();
@@ -714,9 +714,9 @@ namespace Gst {
                        [CCode (has_construct_function = false)]
                        protected Src ();
                        [NoWrapper]
-                       public virtual Gst.FlowReturn alloc (uint64 offset, uint size, Gst.Buffer buf);
+                       public virtual Gst.FlowReturn alloc (uint64 offset, uint size, out Gst.Buffer buf);
                        [NoWrapper]
-                       public virtual Gst.FlowReturn create (uint64 offset, uint size, out Gst.Buffer buf);
+                       public virtual Gst.FlowReturn create (uint64 offset, uint size, ref Gst.Buffer buf);
                        [NoWrapper]
                        public virtual bool decide_allocation (Gst.Query query);
                        [NoWrapper]
@@ -734,7 +734,7 @@ namespace Gst {
                        public virtual Gst.Caps get_caps (Gst.Caps? filter);
                        public bool get_do_timestamp ();
                        [NoWrapper]
-                       public virtual bool get_size (uint64 size);
+                       public virtual bool get_size (out uint64 size);
                        [NoWrapper]
                        public virtual void get_times (Gst.Buffer buffer, out Gst.ClockTime start, out Gst.ClockTime end);
                        public bool is_async ();
@@ -887,7 +887,7 @@ namespace Gst {
                        [CCode (cname = "gst_bit_writer_put_bits_uint8")]
                        public bool put_bits_uint8 (uint8 value, uint nbits);
                        [CCode (cname = "gst_bit_writer_put_bytes")]
-                       public bool put_bytes (uint8 data, uint nbytes);
+                       public bool put_bytes ([CCode (array_length_cname = "nbytes", array_length_pos = 1.1, array_length_type = "guint", type = "const guint8*")] uint8[] data);
                        [CCode (cname = "gst_bit_writer_reset")]
                        public void reset ();
                        [CCode (cname = "gst_bit_writer_reset_and_get_buffer")]
index 504cb31d1ac00186c40a6e4d8e73a96168cb8081..c582eb85b3e92572fb9ac8b5220954fa742554b3 100644 (file)
@@ -19,6 +19,14 @@ ByteReader struct=false
 Adapter
   .map skip
   .take skip
+BaseParse
+  .convert.dest_value out
+  .handle_frame.skipsize out
+BaseSink
+  .get_times.start out
+  .get_times.end out
+BitWriter
+  .put_bytes.data array array_length_idx=1
 
 // Backwards compatibility
 Adapter