[vala/0.36] gstreamer-1.0: Cherry-pick some fixes from 0.38



commit 3ae0883c5574d934380a2a86a4a6db45643f8b51
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Fri Mar 2 16:46:06 2018 +0100

    gstreamer-1.0: Cherry-pick some fixes from 0.38

 vapi/gstreamer-1.0.vapi            |   22 +++++++++++-----------
 vapi/gstreamer-allocators-1.0.vapi |    2 +-
 vapi/gstreamer-audio-1.0.vapi      |    2 +-
 vapi/gstreamer-pbutils-1.0.vapi    |   10 +++++-----
 4 files changed, 18 insertions(+), 18 deletions(-)
---
diff --git a/vapi/gstreamer-1.0.vapi b/vapi/gstreamer-1.0.vapi
index fa37f75..4c9bba7 100644
--- a/vapi/gstreamer-1.0.vapi
+++ b/vapi/gstreamer-1.0.vapi
@@ -1356,7 +1356,7 @@ namespace Gst {
                public bool parse_group_id (out uint group_id);
                public void parse_latency (out Gst.ClockTime latency);
                [Version (since = "1.6")]
-               public void parse_protection (out unowned string system_id, out unowned Gst.Buffer data, 
string? origin);
+               public void parse_protection (out unowned string system_id, out unowned Gst.Buffer data, out 
unowned string origin);
                public void parse_qos (out Gst.QOSType type, out double proportion, out Gst.ClockTimeDiff 
diff, out Gst.ClockTime timestamp);
                public void parse_seek (out double rate, out Gst.Format format, out Gst.SeekFlags flags, out 
Gst.SeekType start_type, out int64 start, out Gst.SeekType stop_type, out int64 stop);
                public void parse_segment (out unowned Gst.Segment segment);
@@ -1498,8 +1498,8 @@ namespace Gst {
                public weak Gst.Memory parent;
                public size_t size;
                public Gst.Memory copy (ssize_t offset, ssize_t size);
-               public size_t get_sizes (size_t offset, size_t maxsize);
-               public bool is_span (Gst.Memory mem2, size_t offset);
+               public size_t get_sizes (out size_t offset, out size_t maxsize);
+               public bool is_span (Gst.Memory mem2, out size_t offset);
                [Version (since = "1.2")]
                public bool is_type (string mem_type);
                public Gst.Memory? make_mapped (out Gst.MapInfo info, Gst.MapFlags flags);
@@ -1577,25 +1577,25 @@ namespace Gst {
                public void parse_clock_lost (out unowned Gst.Clock clock);
                public void parse_clock_provide (out unowned Gst.Clock clock, out bool ready);
                [Version (since = "1.2")]
-               public bool parse_context_type (out string context_type);
+               public bool parse_context_type (out unowned string context_type);
                [Version (since = "1.4")]
                public void parse_device_added (out Gst.Device device);
                [Version (since = "1.4")]
                public void parse_device_removed (out Gst.Device device);
                public void parse_error (out GLib.Error gerror, out string debug);
                [Version (since = "1.10")]
-               public void parse_error_details (out Gst.Structure structure);
+               public void parse_error_details (out unowned Gst.Structure structure);
                [Version (since = "1.2")]
                public bool parse_group_id (out uint group_id);
                [Version (since = "1.2")]
                public void parse_have_context (out Gst.Context context);
                public void parse_info (out GLib.Error gerror, out string debug);
                [Version (since = "1.10")]
-               public void parse_info_details (out Gst.Structure structure);
+               public void parse_info_details (out unowned Gst.Structure structure);
                public void parse_new_clock (out unowned Gst.Clock clock);
                public void parse_progress (out Gst.ProgressType type, out string code, out string text);
                [Version (since = "1.10")]
-               public void parse_property_notify (out unowned Gst.Object object, out string property_name, 
out GLib.Value property_value);
+               public void parse_property_notify (out unowned Gst.Object object, out unowned string 
property_name, out GLib.Value property_value);
                public void parse_qos (out bool live, out uint64 running_time, out uint64 stream_time, out 
uint64 timestamp, out uint64 duration);
                public void parse_qos_stats (out Gst.Format format, out uint64 processed, out uint64 dropped);
                public void parse_qos_values (out int64 jitter, out double proportion, out int quality);
@@ -1618,7 +1618,7 @@ namespace Gst {
                public void parse_toc (out Gst.Toc toc, out bool updated);
                public void parse_warning (out GLib.Error gerror, out string debug);
                [Version (since = "1.10")]
-               public void parse_warning_details (out Gst.Structure structure);
+               public void parse_warning_details (out unowned Gst.Structure structure);
                [CCode (has_construct_function = false)]
                public Message.progress (Gst.Object src, Gst.ProgressType type, string code, string text);
                [CCode (has_construct_function = false)]
@@ -2046,7 +2046,7 @@ namespace Gst {
                [CCode (has_construct_function = false)]
                public Query.latency ();
                public void parse_accept_caps (out unowned Gst.Caps caps);
-               public void parse_accept_caps_result (bool result);
+               public void parse_accept_caps_result (out bool result);
                public void parse_allocation (out unowned Gst.Caps caps, out bool need_pool);
                public void parse_buffering_percent (out bool busy, out int percent);
                public void parse_buffering_range (out Gst.Format format, out int64 start, out int64 stop, 
out int64 estimated_total);
@@ -2065,7 +2065,7 @@ namespace Gst {
                public void parse_nth_allocation_param (uint index, out Gst.Allocator allocator, out unowned 
Gst.AllocationParams @params);
                public void parse_nth_allocation_pool (uint index, out Gst.BufferPool pool, out uint size, 
out uint min_buffers, out uint max_buffers);
                public bool parse_nth_buffering_range (uint index, out int64 start, out int64 stop);
-               public void parse_nth_format (out uint nth, out Gst.Format format);
+               public void parse_nth_format (uint nth, out Gst.Format format);
                public Gst.PadMode parse_nth_scheduling_mode (uint index);
                public void parse_position (out Gst.Format format, out int64 cur);
                public void parse_scheduling (out Gst.SchedulingFlags flags, out int minsize, out int 
maxsize, out int align);
@@ -2350,7 +2350,7 @@ namespace Gst {
                public bool get_float (string tag, out float value);
                public bool get_float_index (string tag, uint index, out float value);
                public bool get_int (string tag, out int value);
-               public bool get_int64 (string tag, int64 value);
+               public bool get_int64 (string tag, out int64 value);
                public bool get_int64_index (string tag, uint index, out int64 value);
                public bool get_int_index (string tag, uint index, out int value);
                public bool get_pointer (string tag, out void* value);
diff --git a/vapi/gstreamer-allocators-1.0.vapi b/vapi/gstreamer-allocators-1.0.vapi
index 7c35c9c..da6b0c4 100644
--- a/vapi/gstreamer-allocators-1.0.vapi
+++ b/vapi/gstreamer-allocators-1.0.vapi
@@ -36,7 +36,7 @@ namespace Gst {
                [CCode (cheader_filename = "gst/allocators/allocators.h", cname = "GST_ALLOCATOR_FD")]
                public const string ALLOCATOR_FD;
                [CCode (cheader_filename = "gst/allocators/allocators.h", cname = 
"GST_CAPS_FEATURE_MEMORY_DMABUF")]
-               [Version (since = "1.11")]
+               [Version (since = "1.12")]
                public const string CAPS_FEATURE_MEMORY_DMABUF;
                [CCode (cheader_filename = "gst/allocators/allocators.h", cname = "gst_dmabuf_memory_get_fd")]
                [Version (since = "1.2")]
diff --git a/vapi/gstreamer-audio-1.0.vapi b/vapi/gstreamer-audio-1.0.vapi
index bd24470..130bde3 100644
--- a/vapi/gstreamer-audio-1.0.vapi
+++ b/vapi/gstreamer-audio-1.0.vapi
@@ -308,7 +308,7 @@ namespace Gst {
                        public void init ();
                        [Version (since = "1.2")]
                        public bool is_equal (Gst.Audio.Info other);
-                       public void set_format (Gst.Audio.Format format, int rate, int channels, 
Gst.Audio.ChannelPosition position);
+                       public void set_format (Gst.Audio.Format format, int rate, int channels, [CCode 
(array_length = false)] Gst.Audio.ChannelPosition position[64]);
                        public Gst.Caps to_caps ();
                }
                [CCode (cheader_filename = "gst/audio/audio.h", has_type_id = false)]
diff --git a/vapi/gstreamer-pbutils-1.0.vapi b/vapi/gstreamer-pbutils-1.0.vapi
index bd8ce11..0be4f00 100644
--- a/vapi/gstreamer-pbutils-1.0.vapi
+++ b/vapi/gstreamer-pbutils-1.0.vapi
@@ -69,7 +69,7 @@ namespace Gst {
                        public void stop ();
                        [NoAccessorMethod]
                        public uint64 timeout { get; set construct; }
-                       public virtual signal void discovered (Gst.PbUtils.DiscovererInfo info, GLib.Error 
err);
+                       public virtual signal void discovered (Gst.PbUtils.DiscovererInfo info, GLib.Error? 
err);
                        public virtual signal void finished ();
                        public virtual signal void source_setup (Gst.Element source);
                        public virtual signal void starting ();
@@ -199,14 +199,14 @@ namespace Gst {
                        public bool is_enabled ();
                        public bool is_equal (Gst.PbUtils.EncodingProfile b);
                        public void set_allow_dynamic_output (bool allow_dynamic_output);
-                       public void set_description (string description);
+                       public void set_description (string? description);
                        public void set_enabled (bool enabled);
                        public void set_format (Gst.Caps format);
-                       public void set_name (string name);
+                       public void set_name (string? name);
                        public void set_presence (uint presence);
                        public void set_preset (string? preset);
-                       public void set_preset_name (string preset_name);
-                       public void set_restriction (owned Gst.Caps restriction);
+                       public void set_preset_name (string? preset_name);
+                       public void set_restriction (owned Gst.Caps? restriction);
                        [NoAccessorMethod]
                        public Gst.Caps restriction_caps { owned get; set; }
                }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]