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



commit 3e5afe2eab927397f093eccc1e295bd8c3cf8a38
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Wed Feb 14 13:44:10 2018 +0100

    gstreamer-1.0: Cherry-pick some fixes from 0.38

 vapi/gstreamer-1.0.vapi       |  133 +++++++++++++++++++----------------------
 vapi/gstreamer-base-1.0.vapi  |    8 +-
 vapi/gstreamer-check-1.0.vapi |    4 +-
 vapi/gstreamer-sdp-1.0.vapi   |    6 +-
 4 files changed, 70 insertions(+), 81 deletions(-)
---
diff --git a/vapi/gstreamer-1.0.vapi b/vapi/gstreamer-1.0.vapi
index 23aa34e..9d5411f 100644
--- a/vapi/gstreamer-1.0.vapi
+++ b/vapi/gstreamer-1.0.vapi
@@ -336,11 +336,11 @@ namespace Gst {
                [CCode (cheader_filename = "gst/gst.h", cname = "gst_tag_exists")]
                public static bool exists (string tag);
                [CCode (cheader_filename = "gst/gst.h", cname = "gst_tag_get_description")]
-               public static unowned string get_description (string tag);
+               public static unowned string? get_description (string tag);
                [CCode (cheader_filename = "gst/gst.h", cname = "gst_tag_get_flag")]
                public static Gst.TagFlag get_flag (string tag);
                [CCode (cheader_filename = "gst/gst.h", cname = "gst_tag_get_nick")]
-               public static unowned string get_nick (string tag);
+               public static unowned string? get_nick (string tag);
                [CCode (cheader_filename = "gst/gst.h", cname = "gst_tag_get_type")]
                public static GLib.Type get_type (string tag);
                [CCode (cheader_filename = "gst/gst.h", cname = "gst_tag_is_fixed")]
@@ -365,9 +365,9 @@ namespace Gst {
                [Version (since = "1.6")]
                public static Gst.Uri? from_string (string uri);
                [CCode (cheader_filename = "gst/gst.h")]
-               public static string get_location (string uri);
+               public static string? get_location (string uri);
                [CCode (cheader_filename = "gst/gst.h")]
-               public static string get_protocol (string uri);
+               public static string? get_protocol (string uri);
                [CCode (cheader_filename = "gst/gst.h")]
                public static bool has_protocol (string uri, string protocol);
                [CCode (cheader_filename = "gst/gst.h")]
@@ -536,7 +536,7 @@ namespace Gst {
                public Gst.MemoryFlags flags;
                public size_t padding;
                public size_t prefix;
-               public Gst.AllocationParams copy ();
+               public Gst.AllocationParams? copy ();
                public void free ();
                public void init ();
        }
@@ -552,7 +552,7 @@ namespace Gst {
                public weak Gst.MemoryUnmapFullFunction mem_unmap_full;
                [CCode (has_construct_function = false)]
                protected Allocator ();
-               public virtual Gst.Memory alloc (size_t size, Gst.AllocationParams? @params);
+               public virtual Gst.Memory? alloc (size_t size, Gst.AllocationParams? @params);
                public static Gst.Allocator? find (string? name);
                public virtual void free (owned Gst.Memory memory);
                public static void register (string name, owned Gst.Allocator allocator);
@@ -589,7 +589,7 @@ namespace Gst {
                public virtual bool add_element (Gst.Element element);
                public void add_many (params Gst.Element[] elements);
                public Gst.Pad? find_unlinked_pad (Gst.PadDirection direction);
-               public Gst.Element get_by_interface (GLib.Type iface);
+               public Gst.Element? get_by_interface (GLib.Type iface);
                public Gst.Element? get_by_name (string name);
                public Gst.Element? get_by_name_recurse_up (string name);
                [Version (since = "1.10")]
@@ -660,13 +660,13 @@ namespace Gst {
                public size_t fill (size_t offset, [CCode (array_length_cname = "size", array_length_pos = 
2.1, array_length_type = "gsize")] uint8[] src);
                public bool find_memory (size_t offset, size_t size, out uint idx, out uint length, out 
size_t skip);
                public bool foreach_meta (Gst.BufferForeachMetaFunc func);
-               public Gst.Memory get_all_memory ();
+               public Gst.Memory? get_all_memory ();
                [Version (since = "1.10")]
                public Gst.BufferFlags get_flags ();
                [Version (since = "1.2")]
                public static uint get_max_memory ();
-               public Gst.Memory get_memory (uint idx);
-               public Gst.Memory get_memory_range (uint idx, int length);
+               public Gst.Memory? get_memory (uint idx);
+               public Gst.Memory? get_memory_range (uint idx, int length);
                public unowned Gst.Meta? get_meta (GLib.Type api);
                public size_t get_size ();
                public size_t get_sizes (out size_t offset, out size_t maxsize);
@@ -685,7 +685,7 @@ namespace Gst {
                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 = "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 unowned Gst.Memory? peek_memory (uint idx);
                public void prepend_memory (owned Gst.Memory mem);
                public void remove_all_memory ();
                public void remove_memory (uint idx);
@@ -770,7 +770,7 @@ namespace Gst {
                [CCode (cname = "gst_bus_add_watch_full")]
                public uint add_watch (int priority, owned Gst.BusFunc func);
                public bool async_signal_func (Gst.Message message, void* data);
-               public GLib.Source create_watch ();
+               public GLib.Source? create_watch ();
                public void disable_sync_message_emission ();
                public void enable_sync_message_emission ();
                public bool have_pending ();
@@ -812,13 +812,13 @@ namespace Gst {
                public Gst.Caps fixate ();
                [Version (since = "1.6")]
                public bool @foreach (Gst.CapsForeachFunc func);
-               public static Gst.Caps from_string (string string);
+               public static Gst.Caps? from_string (string string);
                [CCode (has_construct_function = false)]
                public Caps.full (params Gst.Structure[] structure);
                [CCode (has_construct_function = false)]
                public Caps.full_valist (Gst.Structure structure, va_list var_args);
                [Version (since = "1.2")]
-               public unowned Gst.CapsFeatures get_features (uint index);
+               public unowned Gst.CapsFeatures? get_features (uint index);
                public uint get_size ();
                public unowned Gst.Structure get_structure (uint index);
                [CCode (cname = "gst_caps_intersect_full")]
@@ -850,7 +850,7 @@ namespace Gst {
                [CCode (has_construct_function = false)]
                public Caps.simple (string media_type, string fieldname, ...);
                public Gst.Caps simplify ();
-               public Gst.Structure steal_structure (uint index);
+               public Gst.Structure? steal_structure (uint index);
                public Gst.Caps subtract (Gst.Caps subtrahend);
                public string to_string ();
                public Gst.Caps truncate ();
@@ -882,7 +882,7 @@ namespace Gst {
                [Version (since = "1.2")]
                public static Gst.CapsFeatures? from_string (string features);
                [Version (since = "1.2")]
-               public unowned string get_nth (uint i);
+               public unowned string? get_nth (uint i);
                [Version (since = "1.2")]
                public GLib.Quark get_nth_id (uint i);
                [Version (since = "1.2")]
@@ -1054,19 +1054,19 @@ namespace Gst {
        [CCode (cheader_filename = "gst/gst.h", has_type_id = false)]
        [Compact]
        public class DebugMessage {
-               public unowned string @get ();
+               public unowned string? @get ();
        }
        [CCode (cheader_filename = "gst/gst.h", type_id = "gst_device_get_type ()")]
        [Version (since = "1.4")]
        public abstract class Device : Gst.Object {
                [CCode (has_construct_function = false)]
                protected Device ();
-               public virtual Gst.Element create_element (string? name);
-               public Gst.Caps get_caps ();
+               public virtual Gst.Element? create_element (string? name);
+               public Gst.Caps? get_caps ();
                public string get_device_class ();
                public string get_display_name ();
                [Version (since = "1.6")]
-               public Gst.Structure get_properties ();
+               public Gst.Structure? get_properties ();
                public bool has_classes (string classes);
                public bool has_classesv ([CCode (array_length = false, array_null_terminated = true)] 
string[] classes);
                public virtual bool reconfigure_element (Gst.Element element);
@@ -1083,7 +1083,7 @@ namespace Gst {
                public DeviceMonitor ();
                public uint add_filter (string? classes, Gst.Caps? caps);
                public Gst.Bus get_bus ();
-               public GLib.List<Gst.Device> get_devices ();
+               public GLib.List<Gst.Device>? get_devices ();
                [CCode (array_length = false, array_null_terminated = true)]
                [Version (since = "1.6")]
                public string[] get_providers ();
@@ -1198,14 +1198,14 @@ namespace Gst {
                public Gst.StateChangeReturn continue_state (Gst.StateChangeReturn ret);
                public void create_all_pads ();
                public Gst.ClockTime get_base_time ();
-               public Gst.Bus get_bus ();
-               public Gst.Clock get_clock ();
+               public Gst.Bus? get_bus ();
+               public Gst.Clock? get_clock ();
                public Gst.Pad? get_compatible_pad (Gst.Pad pad, Gst.Caps? caps);
                public unowned Gst.PadTemplate? get_compatible_pad_template (Gst.PadTemplate compattempl);
                [Version (since = "1.8")]
                public Gst.Context get_context (string context_type);
                [Version (since = "1.8")]
-               public Gst.Context get_context_unlocked (string context_type);
+               public Gst.Context? get_context_unlocked (string context_type);
                [Version (since = "1.8")]
                public GLib.List<Gst.Context> get_contexts ();
                public unowned Gst.ElementFactory get_factory ();
@@ -1231,7 +1231,7 @@ namespace Gst {
                public bool link_pads_filtered (string? srcpadname, Gst.Element dest, string? destpadname, 
Gst.Caps? filter);
                public void lost_state ();
                [CCode (returns_floating_reference = true)]
-               public static Gst.Element make_from_uri (Gst.URIType type, string uri, string? elementname) 
throws GLib.Error;
+               public static Gst.Element? make_from_uri (Gst.URIType type, string uri, string? elementname) 
throws GLib.Error;
                public void message_full (Gst.MessageType type, GLib.Quark domain, int code, owned string? 
text, owned string? debug, string file, string function, int line);
                [Version (since = "1.10")]
                public void message_full_with_details (Gst.MessageType type, GLib.Quark domain, int code, 
owned string? text, owned string? debug, string file, string function, int line, owned Gst.Structure 
structure);
@@ -1254,8 +1254,8 @@ namespace Gst {
                public bool seek_simple (Gst.Format format, Gst.SeekFlags seek_flags, int64 seek_pos);
                public virtual bool send_event (owned Gst.Event event);
                public void set_base_time (Gst.ClockTime time);
-               public virtual void set_bus (Gst.Bus bus);
-               public virtual bool set_clock (Gst.Clock clock);
+               public virtual void set_bus (Gst.Bus? bus);
+               public virtual bool set_clock (Gst.Clock? clock);
                public virtual void set_context (Gst.Context context);
                public bool set_locked_state (bool locked_state);
                [CCode (cname = "gst_element_class_set_metadata")]
@@ -1653,7 +1653,7 @@ namespace Gst {
                [Version (since = "1.10")]
                public uint streams_selected_get_size ();
                [Version (since = "1.10")]
-               public Gst.Stream streams_selected_get_stream (uint idx);
+               public Gst.Stream? streams_selected_get_stream (uint idx);
                [CCode (has_construct_function = false)]
                public Message.structure_change (Gst.Object? src, Gst.StructureChangeType type, Gst.Element 
owner, bool busy);
                [CCode (has_construct_function = false)]
@@ -1764,7 +1764,7 @@ namespace Gst {
                public Gst.PadTemplate? get_pad_template ();
                public Gst.Caps get_pad_template_caps ();
                public Gst.Element? get_parent_element ();
-               public Gst.Pad get_peer ();
+               public Gst.Pad? get_peer ();
                public Gst.FlowReturn get_range (uint64 offset, uint size, out Gst.Buffer buffer);
                public Gst.Event? get_sticky_event (Gst.EventType event_type, uint idx);
                [Version (since = "1.10")]
@@ -1879,7 +1879,7 @@ namespace Gst {
                public ParseContext ();
                public void free ();
                [CCode (array_length = false, array_null_terminated = true)]
-               public string[] get_missing_elements ();
+               public string[]? get_missing_elements ();
        }
        [CCode (cheader_filename = "gst/gst.h", type_id = "gst_pipeline_get_type ()")]
        public class Pipeline : Gst.Bin, Gst.ChildProxy {
@@ -1911,7 +1911,7 @@ namespace Gst {
        public class Plugin : Gst.Object {
                [CCode (has_construct_function = false)]
                protected Plugin ();
-               public void add_dependency (string? env_vars, string? paths, string? names, 
Gst.PluginDependencyFlags flags);
+               public void add_dependency ([CCode (array_length = false, array_null_terminated = true)] 
string[]? env_vars, [CCode (array_length = false, array_null_terminated = true)] string[]? paths, [CCode 
(array_length = false, array_null_terminated = true)] string[]? names, Gst.PluginDependencyFlags flags);
                public void add_dependency_simple (string? env_vars, string? paths, string? names, 
Gst.PluginDependencyFlags flags);
                public unowned Gst.Structure? get_cache_data ();
                public unowned string get_description ();
@@ -1925,8 +1925,8 @@ namespace Gst {
                public unowned string get_version ();
                public bool is_loaded ();
                public static void list_free (owned GLib.List<Gst.Plugin> list);
-               public Gst.Plugin load ();
-               public static Gst.Plugin load_by_name (string name);
+               public Gst.Plugin? load ();
+               public static Gst.Plugin? load_by_name (string name);
                public static Gst.Plugin load_file (string filename) throws GLib.Error;
                public static bool register_static (int major_version, int minor_version, string name, string 
description, Gst.PluginInitFunc init_func, string version, string license, string source, string package, 
string origin);
                public static bool register_static_full (int major_version, int minor_version, string name, 
string description, [CCode (delegate_target_pos = 10.1)] Gst.PluginInitFullFunc init_full_func, string 
version, string license, string source, string package, string origin);
@@ -2131,7 +2131,7 @@ namespace Gst {
                [Version (since = "1.6")]
                public unowned Gst.BufferList? get_buffer_list ();
                public unowned Gst.Caps? get_caps ();
-               public unowned Gst.Structure get_info ();
+               public unowned Gst.Structure? get_info ();
                public unowned Gst.Segment get_segment ();
                [Version (since = "1.6")]
                public void set_buffer_list (Gst.BufferList buffer_list);
@@ -2181,27 +2181,18 @@ namespace Gst {
                public int to_stream_time_full (Gst.Format format, uint64 position, out uint64 stream_time);
        }
        [CCode (cheader_filename = "gst/gst.h", type_id = "gst_stream_get_type ()")]
+       [Version (since = "1.10")]
        public class Stream : Gst.Object {
                [CCode (has_construct_function = false)]
-               [Version (since = "1.10")]
                public Stream (string? stream_id, Gst.Caps? caps, Gst.StreamType type, Gst.StreamFlags flags);
-               [Version (since = "1.10")]
                public Gst.Caps? get_caps ();
-               [Version (since = "1.10")]
                public Gst.StreamFlags get_stream_flags ();
-               [Version (since = "1.10")]
                public unowned string? get_stream_id ();
-               [Version (since = "1.10")]
                public Gst.StreamType get_stream_type ();
-               [Version (since = "1.10")]
                public Gst.TagList? get_tags ();
-               [Version (since = "1.10")]
                public void set_caps (Gst.Caps? caps);
-               [Version (since = "1.10")]
                public void set_stream_flags (Gst.StreamFlags flags);
-               [Version (since = "1.10")]
                public void set_stream_type (Gst.StreamType stream_type);
-               [Version (since = "1.10")]
                public void set_tags (Gst.TagList? tags);
                public Gst.Caps caps { owned get; set; }
                public Gst.StreamFlags stream_flags { get; set construct; }
@@ -2216,7 +2207,7 @@ namespace Gst {
                public StreamCollection (string? upstream_id);
                public bool add_stream (owned Gst.Stream stream);
                public uint get_size ();
-               public unowned Gst.Stream get_stream (uint index);
+               public unowned Gst.Stream? get_stream (uint index);
                public unowned string get_upstream_id ();
                [NoAccessorMethod]
                public string upstream_id { owned get; set construct; }
@@ -2280,7 +2271,7 @@ namespace Gst {
                public void id_set_valist (GLib.Quark fieldname, va_list varargs);
                public void id_set_value (GLib.Quark field, GLib.Value value);
                public void id_take_value (GLib.Quark field, owned GLib.Value value);
-               public Gst.Structure intersect (Gst.Structure struct2);
+               public Gst.Structure? intersect (Gst.Structure struct2);
                public bool is_equal (Gst.Structure structure2);
                public bool is_subset (Gst.Structure superset);
                public bool map_in_place (Gst.StructureMapFunc func);
@@ -2306,7 +2297,7 @@ namespace Gst {
                protected SystemClock ();
                public static Gst.Clock obtain ();
                [Version (since = "1.4")]
-               public static void set_default (Gst.Clock new_clock);
+               public static void set_default (Gst.Clock? new_clock);
                [NoAccessorMethod]
                public Gst.ClockType clock_type { get; set; }
        }
@@ -2419,7 +2410,7 @@ namespace Gst {
                public Gst.TocEntryType get_entry_type ();
                [Version (since = "1.4")]
                public bool get_loop (out Gst.TocLoopType loop_type, out int repeat_count);
-               public unowned Gst.TocEntry get_parent ();
+               public unowned Gst.TocEntry? get_parent ();
                public bool get_start_stop_times (out int64 start, out int64 stop);
                public unowned GLib.List<Gst.TocEntry> get_sub_entries ();
                public unowned Gst.TagList get_tags ();
@@ -2478,34 +2469,34 @@ namespace Gst {
                [Version (since = "1.6")]
                public Gst.Uri from_string_with_base (string uri);
                [Version (since = "1.6")]
-               public unowned string get_fragment ();
+               public unowned string? get_fragment ();
                [Version (since = "1.6")]
-               public unowned string get_host ();
+               public unowned string? get_host ();
                [Version (since = "1.6")]
                public string get_path ();
                [Version (since = "1.6")]
                public GLib.List<string> get_path_segments ();
                [Version (since = "1.6")]
-               public string get_path_string ();
+               public string? get_path_string ();
                [Version (since = "1.6")]
                public uint get_port ();
                [Version (since = "1.6")]
                public GLib.List<weak string> get_query_keys ();
                [Version (since = "1.6")]
-               public string get_query_string ();
+               public string? get_query_string ();
                [Version (since = "1.6")]
-               public GLib.HashTable<string,string> get_query_table ();
+               public GLib.HashTable<string,string>? get_query_table ();
                [Version (since = "1.6")]
-               public unowned string get_query_value (string query_key);
-               public unowned string get_scheme ();
+               public unowned string? get_query_value (string query_key);
+               public unowned string? get_scheme ();
                [Version (since = "1.6")]
-               public unowned string get_userinfo ();
+               public unowned string? get_userinfo ();
                [Version (since = "1.6")]
                public bool is_normalized ();
                [Version (since = "1.6")]
                public bool is_writable ();
                [Version (since = "1.6")]
-               public Gst.Uri join (Gst.Uri? ref_uri);
+               public Gst.Uri? join (Gst.Uri? ref_uri);
                [ReturnsModifiedPointer]
                [Version (since = "1.6")]
                public Gst.Uri make_writable ();
@@ -2727,12 +2718,10 @@ namespace Gst {
                public void* data;
                public uint64 offset;
                public uint size;
-               [CCode (cname = "ABI.abi.flow_ret")]
-               public Gst.FlowReturn ABI_abi_flow_ret;
-               public unowned Gst.Buffer get_buffer ();
-               public unowned Gst.BufferList get_buffer_list ();
-               public unowned Gst.Event get_event ();
-               public unowned Gst.Query get_query ();
+               public unowned Gst.Buffer? get_buffer ();
+               public unowned Gst.BufferList? get_buffer_list ();
+               public unowned Gst.Event? get_event ();
+               public unowned Gst.Query? get_query ();
        }
        [CCode (cheader_filename = "gst/gst.h", has_type_id = false)]
        public struct ParamSpecFraction {
@@ -2784,7 +2773,7 @@ namespace Gst {
                public weak Gst.Caps caps;
                public weak global::string string;
                public void cleanup ();
-               public Gst.Caps @get ();
+               public Gst.Caps? @get ();
                public static GLib.Type get_type ();
        }
        [CCode (cheader_filename = "gst/gst.h", has_type_id = false)]
@@ -2793,7 +2782,7 @@ namespace Gst {
                public Gst.PadDirection direction;
                public Gst.PadPresence presence;
                public Gst.StaticCaps static_caps;
-               public Gst.PadTemplate @get ();
+               public unowned Gst.PadTemplate? @get ();
                public Gst.Caps get_caps ();
                public static GLib.Type get_type ();
        }
@@ -3451,14 +3440,14 @@ namespace Gst {
        }
        [CCode (cheader_filename = "gst/gst.h", cprefix = "GST_STREAM_TYPE_", type_id = 
"gst_stream_type_get_type ()")]
        [Flags]
+       [Version (since = "1.10")]
        public enum StreamType {
                UNKNOWN,
                AUDIO,
                VIDEO,
                CONTAINER,
                TEXT;
-               [Version (since = "1.10")]
-               public static unowned string get_name (Gst.StreamType stype);
+               public static unowned string? get_name (Gst.StreamType stype);
        }
        [CCode (cheader_filename = "gst/gst.h", cprefix = "GST_STRUCTURE_CHANGE_TYPE_PAD_", type_id = 
"gst_structure_change_type_get_type ()")]
        public enum StructureChangeType {
@@ -3890,7 +3879,7 @@ namespace Gst {
        [CCode (cheader_filename = "gst/gst.h")]
        public static bool init_check ([CCode (array_length_cname = "argc", array_length_pos = 0.5)] ref 
unowned string[]? argv) throws GLib.Error;
        [CCode (cheader_filename = "gst/gst.h")]
-       public static GLib.OptionGroup init_get_option_group ();
+       public static GLib.OptionGroup? init_get_option_group ();
        [CCode (cheader_filename = "gst/gst.h")]
        public static bool is_caps_features (void* obj);
        [CCode (cheader_filename = "gst/gst.h")]
@@ -3898,18 +3887,18 @@ namespace Gst {
        [CCode (cheader_filename = "gst/gst.h")]
        public static GLib.ParamSpec param_spec_fraction (string name, string nick, string blurb, int 
min_num, int min_denom, int max_num, int max_denom, int default_num, int default_denom, GLib.ParamFlags 
flags);
        [CCode (cheader_filename = "gst/gst.h", cname = "gst_parse_bin_from_description_full", 
returns_floating_reference = true)]
-       public static Gst.Element parse_bin_from_description (string bin_description, bool 
ghost_unlinked_pads, Gst.ParseContext? context = null, Gst.ParseFlags flags = Gst.ParseFlags.NONE) throws 
GLib.Error;
+       public static Gst.Element? parse_bin_from_description (string bin_description, bool 
ghost_unlinked_pads, Gst.ParseContext? context = null, Gst.ParseFlags flags = Gst.ParseFlags.NONE) throws 
GLib.Error;
        [CCode (cheader_filename = "gst/gst.h", cname = "gst_parse_launch_full", returns_floating_reference = 
true)]
-       public static Gst.Element parse_launch (string pipeline_description, Gst.ParseContext? context = 
null, Gst.ParseFlags flags = Gst.ParseFlags.NONE) throws GLib.Error;
+       public static Gst.Element? parse_launch (string pipeline_description, Gst.ParseContext? context = 
null, Gst.ParseFlags flags = Gst.ParseFlags.NONE) throws GLib.Error;
        [CCode (cheader_filename = "gst/gst.h", cname = "gst_parse_launchv_full", returns_floating_reference 
= true)]
-       public static Gst.Element parse_launchv ([CCode (array_length = false, array_null_terminated = true)] 
string[] argv, Gst.ParseContext? context = null, Gst.ParseFlags flags = Gst.ParseFlags.NONE) throws 
GLib.Error;
+       public static Gst.Element? parse_launchv ([CCode (array_length = false, array_null_terminated = 
true)] string[] argv, Gst.ParseContext? context = null, Gst.ParseFlags flags = Gst.ParseFlags.NONE) throws 
GLib.Error;
        [CCode (cheader_filename = "gst/gst.h")]
        public static unowned string? preset_get_app_dir ();
        [CCode (cheader_filename = "gst/gst.h")]
        public static bool preset_set_app_dir (string app_dir);
        [CCode (cheader_filename = "gst/gst.h")]
        [Version (since = "1.6")]
-       public static unowned string protection_select_system (string system_identifiers);
+       public static unowned string? protection_select_system ([CCode (array_length = false, 
array_null_terminated = true)] string[] system_identifiers);
        [CCode (cheader_filename = "gst/gst.h")]
        public static bool segtrap_is_enabled ();
        [CCode (cheader_filename = "gst/gst.h")]
diff --git a/vapi/gstreamer-base-1.0.vapi b/vapi/gstreamer-base-1.0.vapi
index c33aa5f..92d8ec5 100644
--- a/vapi/gstreamer-base-1.0.vapi
+++ b/vapi/gstreamer-base-1.0.vapi
@@ -672,16 +672,16 @@ namespace Gst {
                        [NoWrapper]
                        public virtual Gst.Caps fixate_caps (Gst.PadDirection direction, Gst.Caps caps, 
Gst.Caps othercaps);
                        [NoWrapper]
-                       public virtual Gst.FlowReturn generate_output (Gst.Buffer outbuf);
+                       public virtual Gst.FlowReturn generate_output (out Gst.Buffer outbuf);
                        public void get_allocator (out Gst.Allocator allocator, out Gst.AllocationParams 
@params);
                        public Gst.BufferPool get_buffer_pool ();
                        [NoWrapper]
-                       public virtual bool get_unit_size (Gst.Caps caps, size_t size);
+                       public virtual bool get_unit_size (Gst.Caps caps, out size_t size);
                        public bool is_in_place ();
                        public bool is_passthrough ();
                        public bool is_qos_enabled ();
                        [NoWrapper]
-                       public virtual Gst.FlowReturn prepare_output_buffer (Gst.Buffer input, Gst.Buffer 
outbuf);
+                       public virtual Gst.FlowReturn prepare_output_buffer (Gst.Buffer input, out Gst.Buffer 
outbuf);
                        [NoWrapper]
                        public virtual bool propose_allocation (Gst.Query decide_query, Gst.Query query);
                        [NoWrapper]
@@ -715,7 +715,7 @@ namespace Gst {
                        [NoWrapper]
                        public virtual bool transform_meta (Gst.Buffer outbuf, Gst.Meta meta, Gst.Buffer 
inbuf);
                        [NoWrapper]
-                       public virtual bool transform_size (Gst.PadDirection direction, Gst.Caps caps, size_t 
size, Gst.Caps othercaps, size_t othersize);
+                       public virtual bool transform_size (Gst.PadDirection direction, Gst.Caps caps, size_t 
size, Gst.Caps othercaps, out size_t othersize);
                        public void update_qos (double proportion, Gst.ClockTimeDiff diff, Gst.ClockTime 
timestamp);
                        [Version (since = "1.6")]
                        public bool update_src_caps (Gst.Caps updated_caps);
diff --git a/vapi/gstreamer-check-1.0.vapi b/vapi/gstreamer-check-1.0.vapi
index d8c461c..1ee71d5 100644
--- a/vapi/gstreamer-check-1.0.vapi
+++ b/vapi/gstreamer-check-1.0.vapi
@@ -114,9 +114,9 @@ namespace Gst {
                        [CCode (cname = "gst_harness_pull_upstream_event")]
                        public Gst.Event pull_upstream_event ();
                        [CCode (cname = "gst_harness_push")]
-                       public Gst.FlowReturn push (Gst.Buffer buffer);
+                       public Gst.FlowReturn push (owned Gst.Buffer buffer);
                        [CCode (cname = "gst_harness_push_and_pull")]
-                       public Gst.Buffer push_and_pull (Gst.Buffer buffer);
+                       public Gst.Buffer push_and_pull (owned Gst.Buffer buffer);
                        [CCode (cname = "gst_harness_push_event")]
                        public bool push_event (Gst.Event event);
                        [CCode (cname = "gst_harness_push_from_src")]
diff --git a/vapi/gstreamer-sdp-1.0.vapi b/vapi/gstreamer-sdp-1.0.vapi
index c27af31..5cd4b14 100644
--- a/vapi/gstreamer-sdp-1.0.vapi
+++ b/vapi/gstreamer-sdp-1.0.vapi
@@ -197,7 +197,7 @@ namespace Gst {
                        public weak string uri;
                        public weak string version;
                        public weak GLib.Array<void*> zones;
-                       public Gst.SDP.Result add_attribute (string key, string value);
+                       public Gst.SDP.Result add_attribute (string key, string? value);
                        public Gst.SDP.Result add_bandwidth (string bwtype, uint bandwidth);
                        public Gst.SDP.Result add_email (string email);
                        public Gst.SDP.Result add_media (Gst.SDP.Media media);
@@ -290,7 +290,7 @@ namespace Gst {
                        [Version (since = "1.2")]
                        public Gst.SDP.Result clear ();
                        [Version (since = "1.2")]
-                       public Gst.SDP.Result @set (string key, string value);
+                       public Gst.SDP.Result @set (string key, string? value);
                }
                [CCode (cheader_filename = "gst/sdp/sdp.h", has_type_id = false)]
                [GIR (name = "SDPBandwidth")]
@@ -348,7 +348,7 @@ namespace Gst {
                        public weak GLib.Array<void*> bandwidths;
                        public Gst.SDP.Key key;
                        public weak GLib.Array<void*> attributes;
-                       public Gst.SDP.Result add_attribute (string key, string value);
+                       public Gst.SDP.Result add_attribute (string key, string? value);
                        public Gst.SDP.Result add_bandwidth (string bwtype, uint bandwidth);
                        public Gst.SDP.Result add_connection (string nettype, string addrtype, string 
address, uint ttl, uint addr_number);
                        public Gst.SDP.Result add_format (string format);


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