[vala/0.54] gstreamer-base-1.0: Some parameter fixes
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.54] gstreamer-base-1.0: Some parameter fixes
- Date: Mon, 29 Nov 2021 06:56:31 +0000 (UTC)
commit 195efca1b03b532f15e9b59af29cdd841a8d5c37
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Tue Nov 23 11:06:36 2021 +0100
gstreamer-base-1.0: Some parameter fixes
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1255
vapi/gstreamer-base-1.0.vapi | 14 +++++++-------
vapi/metadata/GstBase-1.0.metadata | 8 ++++++++
2 files changed, 15 insertions(+), 7 deletions(-)
---
diff --git a/vapi/gstreamer-base-1.0.vapi b/vapi/gstreamer-base-1.0.vapi
index 30ec578d6..6746f5c5a 100644
--- a/vapi/gstreamer-base-1.0.vapi
+++ b/vapi/gstreamer-base-1.0.vapi
@@ -516,7 +516,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);
@@ -526,7 +526,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]
@@ -632,7 +632,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 ();
@@ -720,9 +720,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]
@@ -740,7 +740,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 ();
@@ -893,7 +893,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")]
diff --git a/vapi/metadata/GstBase-1.0.metadata b/vapi/metadata/GstBase-1.0.metadata
index 504cb31d1..c582eb85b 100644
--- a/vapi/metadata/GstBase-1.0.metadata
+++ b/vapi/metadata/GstBase-1.0.metadata
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]