summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2023-02-11 18:18:14 +0100
committerRico Tzschichholz <ricotz@ubuntu.com>2023-02-11 18:18:14 +0100
commitfbc8808614d09c461ec4c1f27ef513af50388f38 (patch)
tree20fba387f1ea7e2443d19955961b097930e88416
parent521d3b4eef09b767bcb2fa56c441fbb8752c9a2d (diff)
downloadvala-fbc8808614d09c461ec4c1f27ef513af50388f38.tar.gz
gstreamer: Update from 1.23.0+ git main
-rw-r--r--vapi/gst-editing-services-1.0.vapi76
-rw-r--r--vapi/gstreamer-1.0.vapi144
-rw-r--r--vapi/gstreamer-allocators-1.0.vapi6
-rw-r--r--vapi/gstreamer-app-1.0.vapi14
-rw-r--r--vapi/gstreamer-audio-1.0.vapi15
-rw-r--r--vapi/gstreamer-base-1.0.vapi29
-rw-r--r--vapi/gstreamer-check-1.0.vapi24
-rw-r--r--vapi/gstreamer-controller-1.0.vapi2
-rw-r--r--vapi/gstreamer-net-1.0.vapi9
-rw-r--r--vapi/gstreamer-pbutils-1.0.vapi64
-rw-r--r--vapi/gstreamer-play-1.0.vapi4
-rw-r--r--vapi/gstreamer-player-1.0.vapi2
-rw-r--r--vapi/gstreamer-rtp-1.0.vapi22
-rw-r--r--vapi/gstreamer-rtsp-1.0.vapi95
-rw-r--r--vapi/gstreamer-rtsp-server-1.0.vapi32
-rw-r--r--vapi/gstreamer-sdp-1.0.vapi28
-rw-r--r--vapi/gstreamer-tag-1.0.vapi46
-rw-r--r--vapi/gstreamer-video-1.0.vapi59
-rw-r--r--vapi/gstreamer-webrtc-1.0.vapi81
19 files changed, 420 insertions, 332 deletions
diff --git a/vapi/gst-editing-services-1.0.vapi b/vapi/gst-editing-services-1.0.vapi
index 5e73ec7f1..defb8afa0 100644
--- a/vapi/gst-editing-services-1.0.vapi
+++ b/vapi/gst-editing-services-1.0.vapi
@@ -174,7 +174,7 @@ namespace GES {
[Version (deprecated = true, deprecated_since = "1.18")]
public virtual bool edit (GLib.List<GES.Layer>? layers, int new_layer_priority, GES.EditMode mode, GES.Edge edge, uint64 position);
public GLib.List<GES.TimelineElement> get_children (bool recursive);
- public static unowned GES.Container group (GLib.List<GES.Container>? containers);
+ public static unowned GES.Container? group (GLib.List<GES.Container>? containers);
public bool remove (GES.TimelineElement child);
[NoWrapper]
public virtual bool remove_child (GES.TimelineElement element);
@@ -253,7 +253,7 @@ namespace GES {
public weak GES.Timeline timeline;
[CCode (has_construct_function = false)]
public Layer ();
- public unowned GES.Clip add_asset (GES.Asset asset, Gst.ClockTime start, Gst.ClockTime inpoint, Gst.ClockTime duration, GES.TrackType track_types);
+ public unowned GES.Clip? add_asset (GES.Asset asset, Gst.ClockTime start, Gst.ClockTime inpoint, Gst.ClockTime duration, GES.TrackType track_types);
[Version (since = "1.18")]
public unowned GES.Clip add_asset_full (GES.Asset asset, Gst.ClockTime start, Gst.ClockTime inpoint, Gst.ClockTime duration, GES.TrackType track_types) throws GLib.Error;
public bool add_clip (GES.Clip clip);
@@ -340,16 +340,16 @@ namespace GES {
[CCode (has_construct_function = false)]
public Pipeline ();
public GES.PipelineFlags get_mode ();
- public Gst.Sample get_thumbnail (Gst.Caps caps);
- public Gst.Sample get_thumbnail_rgb24 (int width, int height);
- public Gst.Element preview_get_audio_sink ();
- public Gst.Element preview_get_video_sink ();
- public void preview_set_audio_sink (Gst.Element sink);
- public void preview_set_video_sink (Gst.Element sink);
+ public Gst.Sample? get_thumbnail (Gst.Caps caps);
+ public Gst.Sample? get_thumbnail_rgb24 (int width, int height);
+ public Gst.Element? preview_get_audio_sink ();
+ public Gst.Element? preview_get_video_sink ();
+ public void preview_set_audio_sink (Gst.Element? sink);
+ public void preview_set_video_sink (Gst.Element? sink);
public bool save_thumbnail (int width, int height, string format, string location) throws GLib.Error;
public bool set_mode (GES.PipelineFlags mode);
public bool set_render_settings (string output_uri, Gst.PbUtils.EncodingProfile profile);
- public bool set_timeline (owned GES.Timeline timeline);
+ public bool set_timeline (GES.Timeline timeline);
[NoAccessorMethod]
[Version (since = "1.6.0")]
public Gst.Element audio_filter { owned get; set; }
@@ -455,16 +455,16 @@ namespace GES {
[Version (deprecated = true, deprecated_since = "1.18")]
public TextOverlay ();
public uint32 get_color ();
- public unowned string get_font_desc ();
+ public unowned string? get_font_desc ();
public GES.TextHAlign get_halignment ();
- public unowned string get_text ();
+ public unowned string? get_text ();
public GES.TextVAlign get_valignment ();
public double get_xpos ();
public double get_ypos ();
public void set_color (uint32 color);
- public void set_font_desc (string font_desc);
+ public void set_font_desc (string? font_desc);
public void set_halignment (GES.TextHAlign halign);
- public void set_text (string text);
+ public void set_text (string? text);
public void set_valignment (GES.TextVAlign valign);
public void set_xpos (double position);
public void set_ypos (double position);
@@ -474,16 +474,16 @@ namespace GES {
[CCode (has_construct_function = false)]
public TextOverlayClip ();
public uint32 get_color ();
- public unowned string get_font_desc ();
+ public unowned string? get_font_desc ();
public GES.TextHAlign get_halignment ();
- public unowned string get_text ();
+ public unowned string? get_text ();
public GES.TextVAlign get_valignment ();
public double get_xpos ();
public double get_ypos ();
public void set_color (uint32 color);
- public void set_font_desc (string font_desc);
+ public void set_font_desc (string? font_desc);
public void set_halign (GES.TextHAlign halign);
- public void set_text (string text);
+ public void set_text (string? text);
public void set_valign (GES.TextVAlign valign);
public void set_xpos (double position);
public void set_ypos (double position);
@@ -505,18 +505,22 @@ namespace GES {
public Timeline ();
[Version (deprecated = true, deprecated_since = "1.18")]
public bool add_layer (GES.Layer layer);
- public bool add_track (owned GES.Track track);
+ public bool add_track (GES.Track track);
public unowned GES.Layer append_layer ();
[CCode (has_construct_function = false)]
public Timeline.audio_video ();
public bool commit ();
public bool commit_sync ();
+ [Version (since = "1.22")]
+ public void disable_edit_apis (bool disable_edit_apis);
[Version (since = "1.20")]
public void freeze_commit ();
[CCode (has_construct_function = false)]
public Timeline.from_uri (string uri) throws GLib.Error;
public bool get_auto_transition ();
public Gst.ClockTime get_duration ();
+ [Version (since = "1.22")]
+ public bool get_edit_apis_disabled ();
public GES.TimelineElement? get_element (string name);
[Version (since = "1.18")]
public GES.FrameNumber get_frame_at (Gst.ClockTime timestamp);
@@ -550,7 +554,7 @@ namespace GES {
public virtual signal void layer_added (GES.Layer layer);
public virtual signal void layer_removed (GES.Layer layer);
[Version (since = "1.18")]
- public signal GES.Track select_element_track (GES.Clip clip, GES.TrackElement track_element);
+ public signal GES.Track? select_element_track (GES.Clip clip, GES.TrackElement track_element);
public signal GLib.GenericArray<GES.Track> select_tracks_for_object (GES.Clip clip, GES.TrackElement track_element);
public signal void snapping_ended (GES.TrackElement obj1, GES.TrackElement obj2, uint64 position);
public signal void snapping_started (GES.TrackElement obj1, GES.TrackElement obj2, uint64 position);
@@ -579,7 +583,7 @@ namespace GES {
[Version (since = "1.16")]
public virtual uint32 get_layer_priority ();
public Gst.ClockTime get_max_duration ();
- public string get_name ();
+ public string? get_name ();
[Version (since = "1.18")]
public virtual bool get_natural_framerate (out int framerate_n, out int framerate_d);
public GES.TimelineElement? get_parent ();
@@ -641,11 +645,11 @@ namespace GES {
[Version (deprecated = true, deprecated_since = "1.6")]
public uint32 get_background_color ();
[Version (deprecated = true, deprecated_since = "1.6")]
- public unowned string get_font_desc ();
+ public string? get_font_desc ();
[Version (deprecated = true, deprecated_since = "1.6")]
public GES.TextHAlign get_halignment ();
[Version (deprecated = true, deprecated_since = "1.6")]
- public unowned string get_text ();
+ public string? get_text ();
[Version (deprecated = true, deprecated_since = "1.6")]
public uint32 get_text_color ();
[Version (deprecated = true, deprecated_since = "1.6")]
@@ -659,11 +663,11 @@ namespace GES {
[Version (deprecated = true, deprecated_since = "1.6")]
public void set_color (uint32 color);
[Version (deprecated = true, deprecated_since = "1.6")]
- public void set_font_desc (string font_desc);
+ public void set_font_desc (string? font_desc);
[Version (deprecated = true, deprecated_since = "1.6")]
public void set_halignment (GES.TextHAlign halign);
[Version (deprecated = true, deprecated_since = "1.6")]
- public void set_text (string text);
+ public void set_text (string? text);
[Version (deprecated = true, deprecated_since = "1.6")]
public void set_valignment (GES.TextVAlign valign);
[Version (deprecated = true, deprecated_since = "1.6")]
@@ -677,11 +681,11 @@ namespace GES {
[Version (deprecated = true, deprecated_since = "1.6")]
public uint color { get; set construct; }
[Version (deprecated = true, deprecated_since = "1.6")]
- public string font_desc { get; set construct; }
+ public string font_desc { owned get; set construct; }
[Version (deprecated = true, deprecated_since = "1.6")]
public GES.TextHAlign halignment { get; set construct; }
[Version (deprecated = true, deprecated_since = "1.6")]
- public string text { get; set construct; }
+ public string text { owned get; set construct; }
[Version (deprecated = true, deprecated_since = "1.6")]
public GES.TextVAlign valignment { get; set construct; }
[Version (deprecated = true, deprecated_since = "1.6")]
@@ -695,19 +699,19 @@ namespace GES {
protected TitleSource ();
public uint32 get_background_color ();
[Version (deprecated = true, deprecated_since = "1.16")]
- public string get_font_desc ();
+ public string? get_font_desc ();
public GES.TextHAlign get_halignment ();
[Version (deprecated = true, deprecated_since = "1.16")]
- public string get_text ();
+ public string? get_text ();
public uint32 get_text_color ();
public GES.TextVAlign get_valignment ();
public double get_xpos ();
public double get_ypos ();
public void set_background_color (uint32 color);
- public void set_font_desc (string font_desc);
+ public void set_font_desc (string? font_desc);
public void set_halignment (GES.TextHAlign halign);
[Version (deprecated = true)]
- public void set_text (string text);
+ public void set_text (string? text);
public void set_text_color (uint32 color);
public void set_valignment (GES.TextVAlign valign);
public void set_xpos (double position);
@@ -722,11 +726,11 @@ namespace GES {
[Version (since = "1.18")]
public bool add_element_full (GES.TrackElement object) throws GLib.Error;
public bool commit ();
- public unowned Gst.Caps get_caps ();
+ public unowned Gst.Caps? get_caps ();
public GLib.List<GES.TrackElement> get_elements ();
public bool get_mixing ();
[Version (since = "1.18")]
- public Gst.Caps get_restriction_caps ();
+ public Gst.Caps? get_restriction_caps ();
public unowned GES.Timeline? get_timeline ();
public bool remove_element (GES.TrackElement object);
[Version (since = "1.18")]
@@ -770,7 +774,7 @@ namespace GES {
[Version (since = "1.18")]
public bool get_auto_clamp_control_sources ();
public unowned Gst.ControlBinding? get_control_binding (string property_name);
- public unowned Gst.Element get_element ();
+ public unowned Gst.Element? get_element ();
[Version (deprecated = true)]
public unowned Gst.Element get_gnlobject ();
[Version (since = "1.6")]
@@ -955,9 +959,9 @@ namespace GES {
public bool get_int (string meta_item, out int dest);
public bool get_int64 (string meta_item, out int64 dest);
[Version (since = "1.18")]
- public GES.MarkerList get_marker_list (string key);
+ public GES.MarkerList? get_marker_list (string key);
public unowned GLib.Value? get_meta (string key);
- public unowned string get_string (string meta_item);
+ public unowned string? get_string (string meta_item);
public bool get_uint (string meta_item, out uint dest);
public bool get_uint64 (string meta_item, out uint64 dest);
public string metas_to_string ();
@@ -1304,7 +1308,7 @@ namespace GES {
public static bool is_initialized ();
[CCode (cheader_filename = "ges/ges.h")]
[Version (deprecated = true, deprecated_since = "1.18")]
- public static Gst.Sample play_sink_convert_frame (Gst.Element playsink, Gst.Caps caps);
+ public static Gst.Sample? play_sink_convert_frame (Gst.Element playsink, Gst.Caps caps);
[CCode (cheader_filename = "ges/ges.h")]
public static bool pspec_equal ([CCode (type = "gconstpointer")] GLib.ParamSpec key_spec_1, [CCode (type = "gconstpointer")] GLib.ParamSpec key_spec_2);
[CCode (cheader_filename = "ges/ges.h")]
diff --git a/vapi/gstreamer-1.0.vapi b/vapi/gstreamer-1.0.vapi
index 8a5e3ac7a..fb8ad065d 100644
--- a/vapi/gstreamer-1.0.vapi
+++ b/vapi/gstreamer-1.0.vapi
@@ -54,6 +54,12 @@ namespace Gst {
[Version (since = "1.18")]
public static string log_get_line (Gst.DebugCategory category, Gst.DebugLevel level, string file, string function, int line, GLib.Object? object, Gst.DebugMessage message);
[CCode (cheader_filename = "gst/gst.h")]
+ [Version (since = "1.22")]
+ public static void log_id_literal (Gst.DebugCategory category, Gst.DebugLevel level, string file, string function, int line, string? id, string message_string);
+ [CCode (cheader_filename = "gst/gst.h")]
+ [Version (since = "1.22")]
+ public static void log_id_valist (Gst.DebugCategory category, Gst.DebugLevel level, string file, string function, int line, string? id, string format, va_list args);
+ [CCode (cheader_filename = "gst/gst.h")]
[Version (since = "1.20")]
public static void log_literal (Gst.DebugCategory category, Gst.DebugLevel level, string file, string function, int line, GLib.Object? object, string message_string);
[CCode (cheader_filename = "gst/gst.h")]
@@ -178,6 +184,9 @@ namespace Gst {
public const Gst.ElementFactoryListType SINK;
[CCode (cheader_filename = "gst/gst.h", cname = "GST_ELEMENT_FACTORY_TYPE_SRC")]
public const Gst.ElementFactoryListType SRC;
+ [CCode (cheader_filename = "gst/gst.h", cname = "GST_ELEMENT_FACTORY_TYPE_TIMESTAMPER")]
+ [Version (since = "1.24")]
+ public const Gst.ElementFactoryListType TIMESTAMPER;
[CCode (cheader_filename = "gst/gst.h", cname = "GST_ELEMENT_FACTORY_TYPE_VIDEO_ENCODER")]
public const Gst.ElementFactoryListType VIDEO_ENCODER;
}
@@ -360,11 +369,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")]
@@ -414,7 +423,7 @@ namespace Gst {
public static bool is_valid (string uri);
[CCode (cheader_filename = "gst/gst.h")]
[Version (replacement = "Uri.join_strings", since = "1.6")]
- public static string join_strings (string base_uri, string ref_uri);
+ public static string? join_strings (string base_uri, string ref_uri);
[CCode (cheader_filename = "gst/gst.h")]
[Version (replacement = "Uri.protocol_is_supported")]
public static bool protocol_is_supported (Gst.URIType type, string protocol);
@@ -717,10 +726,10 @@ namespace Gst {
[DestroysInstance]
public Gst.Buffer append_region (owned Gst.Buffer buf2, ssize_t offset, ssize_t size);
[Version (since = "1.6")]
- public Gst.Buffer copy_deep ();
+ public Gst.Buffer? copy_deep ();
[CCode (instance_pos = 1.9)]
public bool copy_into (Gst.Buffer dst, Gst.BufferCopyFlags flags, size_t offset, size_t size);
- public Gst.Buffer copy_region (Gst.BufferCopyFlags flags, size_t offset, size_t size);
+ public Gst.Buffer? copy_region (Gst.BufferCopyFlags flags, size_t offset, size_t size);
public size_t extract (size_t offset, [CCode (array_length_cname = "size", array_length_pos = 2.1, array_length_type = "gsize")] out unowned uint8[] dest);
[Version (since = "1.0.10")]
public void extract_dup (size_t offset, size_t size, [CCode (array_length_cname = "dest_size", array_length_pos = 3.1, array_length_type = "gsize")] out uint8[] dest);
@@ -812,9 +821,9 @@ namespace Gst {
public int flushing;
[CCode (has_construct_function = false, returns_floating_reference = true)]
public BufferPool ();
- public virtual Gst.FlowReturn acquire_buffer (out Gst.Buffer buffer, Gst.BufferPoolAcquireParams? @params);
+ public virtual Gst.FlowReturn acquire_buffer (out Gst.Buffer? buffer, Gst.BufferPoolAcquireParams? @params);
[NoWrapper]
- public virtual Gst.FlowReturn alloc_buffer (out Gst.Buffer buffer, Gst.BufferPoolAcquireParams? @params);
+ public virtual Gst.FlowReturn alloc_buffer (out Gst.Buffer? buffer, Gst.BufferPoolAcquireParams? @params);
public static void config_add_option (Gst.Structure config, string option);
public static bool config_get_allocator (Gst.Structure config, out unowned Gst.Allocator? allocator, out unowned Gst.AllocationParams @params);
public static unowned string? config_get_option (Gst.Structure config, uint index);
@@ -1153,6 +1162,8 @@ namespace Gst {
[Compact]
public class DebugMessage {
public unowned string? @get ();
+ [Version (since = "1.22")]
+ public unowned string? get_id ();
}
[CCode (cheader_filename = "gst/gst.h", type_id = "gst_device_get_type ()")]
[Version (since = "1.4")]
@@ -1313,6 +1324,10 @@ namespace Gst {
public class unowned GLib.List<Gst.PadTemplate> class_get_pad_template_list ();
public Gst.StateChangeReturn continue_state (Gst.StateChangeReturn ret);
public void create_all_pads ();
+ [Version (since = "1.24")]
+ public string decorate_stream_id (string stream_id);
+ [Version (since = "1.24")]
+ public string decorate_stream_id_printf_valist (string format, va_list var_args);
[Version (since = "1.14")]
public bool foreach_pad (Gst.ElementForeachPadFunc func);
[Version (since = "1.14")]
@@ -1656,7 +1671,7 @@ namespace Gst {
public size_t offset;
public weak Gst.Memory parent;
public size_t size;
- public Gst.Memory copy (ssize_t offset, ssize_t size);
+ public Gst.Memory? copy (ssize_t offset, ssize_t size);
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")]
@@ -1695,13 +1710,13 @@ namespace Gst {
public Message.custom (Gst.MessageType type, Gst.Object? src, owned Gst.Structure? structure);
[CCode (has_construct_function = false)]
[Version (since = "1.4")]
- public Message.device_added (Gst.Object src, Gst.Device device);
+ public Message.device_added (Gst.Object? src, Gst.Device device);
[CCode (has_construct_function = false)]
[Version (since = "1.16")]
- public Message.device_changed (Gst.Object src, Gst.Device device, Gst.Device changed_device);
+ public Message.device_changed (Gst.Object? src, Gst.Device device, Gst.Device changed_device);
[CCode (has_construct_function = false)]
[Version (since = "1.4")]
- public Message.device_removed (Gst.Object src, Gst.Device device);
+ public Message.device_removed (Gst.Object? src, Gst.Device device);
[CCode (has_construct_function = false)]
public Message.duration_changed (Gst.Object? src);
[CCode (has_construct_function = false)]
@@ -1729,7 +1744,7 @@ namespace Gst {
public Message.info_with_details (Gst.Object? src, GLib.Error error, string debug, owned Gst.Structure? details);
[CCode (has_construct_function = false)]
[Version (since = "1.18")]
- public Message.instant_rate_request (Gst.Object src, double rate_multiplier);
+ public Message.instant_rate_request (Gst.Object? src, double rate_multiplier);
[CCode (has_construct_function = false)]
public Message.latency (Gst.Object? src);
[CCode (has_construct_function = false)]
@@ -1750,27 +1765,27 @@ namespace Gst {
public void parse_device_changed (out Gst.Device device, out Gst.Device changed_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);
+ public void parse_error (out GLib.Error gerror, out string? debug);
[Version (since = "1.10")]
- public void parse_error_details (out unowned 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);
+ public void parse_info (out GLib.Error gerror, out string? debug);
[Version (since = "1.10")]
- public void parse_info_details (out unowned Gst.Structure structure);
+ public void parse_info_details (out unowned Gst.Structure? structure);
[Version (since = "1.18")]
public void parse_instant_rate_request (out double rate_multiplier);
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 unowned string property_name, out GLib.Value property_value);
+ public void parse_property_notify (out unowned Gst.Object object, out unowned string property_name, out unowned 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);
[Version (since = "1.10")]
- public void parse_redirect_entry (size_t entry_index, out unowned string location, out unowned Gst.TagList tag_list, out unowned Gst.Structure entry_struct);
+ public void parse_redirect_entry (size_t entry_index, out unowned string location, out unowned Gst.TagList? tag_list, out unowned Gst.Structure? entry_struct);
public void parse_request_state (out Gst.State state);
public void parse_reset_time (out Gst.ClockTime running_time);
public void parse_segment_done (out Gst.Format format, out int64 position);
@@ -1786,19 +1801,19 @@ namespace Gst {
public void parse_structure_change (out Gst.StructureChangeType type, out unowned Gst.Element owner, out bool busy);
public void parse_tag (out Gst.TagList tag_list);
public void parse_toc (out Gst.Toc toc, out bool updated);
- public void parse_warning (out GLib.Error gerror, out string debug);
+ public void parse_warning (out GLib.Error gerror, out string? debug);
[Version (since = "1.10")]
- public void parse_warning_details (out unowned 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);
+ public Message.progress (Gst.Object? src, Gst.ProgressType type, string code, string text);
[CCode (has_construct_function = false)]
[Version (since = "1.10")]
public Message.property_notify (Gst.Object src, string property_name, owned GLib.Value? val);
[CCode (has_construct_function = false)]
- public Message.qos (Gst.Object src, bool live, uint64 running_time, uint64 stream_time, uint64 timestamp, uint64 duration);
+ public Message.qos (Gst.Object? src, bool live, uint64 running_time, uint64 stream_time, uint64 timestamp, uint64 duration);
[CCode (has_construct_function = false)]
[Version (since = "1.10")]
- public Message.redirect (Gst.Object src, string location, owned Gst.TagList? tag_list, owned Gst.Structure? entry_struct);
+ public Message.redirect (Gst.Object? src, string location, owned Gst.TagList? tag_list, owned Gst.Structure? entry_struct);
[CCode (has_construct_function = false)]
public Message.request_state (Gst.Object? src, Gst.State state);
[CCode (has_construct_function = false)]
@@ -1819,19 +1834,19 @@ namespace Gst {
[CCode (has_construct_function = false)]
public Message.state_dirty (Gst.Object? src);
[CCode (has_construct_function = false)]
- public Message.step_done (Gst.Object src, Gst.Format format, uint64 amount, double rate, bool flush, bool intermediate, uint64 duration, bool eos);
+ public Message.step_done (Gst.Object? src, Gst.Format format, uint64 amount, double rate, bool flush, bool intermediate, uint64 duration, bool eos);
[CCode (has_construct_function = false)]
- public Message.step_start (Gst.Object src, bool active, Gst.Format format, uint64 amount, double rate, bool flush, bool intermediate);
+ public Message.step_start (Gst.Object? src, bool active, Gst.Format format, uint64 amount, double rate, bool flush, bool intermediate);
[CCode (has_construct_function = false)]
[Version (since = "1.10")]
- public Message.stream_collection (Gst.Object src, Gst.StreamCollection collection);
+ public Message.stream_collection (Gst.Object? src, Gst.StreamCollection collection);
[CCode (has_construct_function = false)]
public Message.stream_start (Gst.Object? src);
[CCode (has_construct_function = false)]
- public Message.stream_status (Gst.Object src, Gst.StreamStatusType type, Gst.Element owner);
+ public Message.stream_status (Gst.Object? src, Gst.StreamStatusType type, Gst.Element owner);
[CCode (has_construct_function = false)]
[Version (since = "1.10")]
- public Message.streams_selected (Gst.Object src, Gst.StreamCollection collection);
+ public Message.streams_selected (Gst.Object? src, Gst.StreamCollection collection);
[Version (since = "1.10")]
public void streams_selected_add (Gst.Stream stream);
[Version (since = "1.10")]
@@ -1845,7 +1860,7 @@ namespace Gst {
[Version (since = "1.16")]
public static bool take (ref Gst.Message old_message, owned Gst.Message? new_message);
[CCode (has_construct_function = false)]
- public Message.toc (Gst.Object src, Gst.Toc toc, bool updated);
+ public Message.toc (Gst.Object? src, Gst.Toc toc, bool updated);
[CCode (has_construct_function = false)]
public Message.warning (Gst.Object? src, GLib.Error error, string debug);
[CCode (has_construct_function = false)]
@@ -1872,7 +1887,7 @@ namespace Gst {
public bool @lock (Gst.LockFlags flags);
[DestroysInstance]
[ReturnsModifiedPointer]
- public Gst.MiniObject make_writable ();
+ public Gst.MiniObject? make_writable ();
public unowned Gst.MiniObject @ref ();
[Version (since = "1.16")]
public void remove_parent (Gst.MiniObject parent);
@@ -2060,7 +2075,7 @@ namespace Gst {
[Version (since = "1.18")]
public Gst.Caps get_documentation_caps ();
[Version (since = "1.18")]
- public void set_documentation_caps (owned Gst.Caps caps);
+ public void set_documentation_caps (Gst.Caps caps);
[CCode (has_construct_function = false)]
[Version (since = "1.14")]
public PadTemplate.with_gtype (string name_template, Gst.PadDirection direction, Gst.PadPresence presence, Gst.Caps caps, GLib.Type pad_type);
@@ -2131,7 +2146,7 @@ namespace Gst {
[Version (since = "1.6")]
public Gst.Clock get_pipeline_clock ();
public void set_auto_flush_bus (bool auto_flush);
- public bool set_clock (Gst.Clock clock);
+ public bool set_clock (Gst.Clock? clock);
public void set_delay (Gst.ClockTime delay);
[Version (since = "1.6")]
public void set_latency (Gst.ClockTime latency);
@@ -2253,7 +2268,7 @@ namespace Gst {
public bool add_buffering_range (int64 start, int64 stop);
public void add_scheduling_mode (Gst.PadMode mode);
[CCode (has_construct_function = false)]
- public Query.allocation (Gst.Caps caps, bool need_pool);
+ public Query.allocation (Gst.Caps? caps, bool need_pool);
[CCode (has_construct_function = false)]
[Version (since = "1.16")]
public Query.bitrate ();
@@ -2287,16 +2302,16 @@ namespace Gst {
public Query.latency ();
public void parse_accept_caps (out unowned Gst.Caps caps);
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_allocation (out unowned Gst.Caps? caps, out bool need_pool);
[Version (since = "1.16")]
public void parse_bitrate (out uint nominal_bitrate);
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);
public void parse_buffering_stats (out Gst.BufferingMode mode, out int avg_in, out int avg_out, out int64 buffering_left);
public void parse_caps (out unowned Gst.Caps filter);
- public void parse_caps_result (out unowned Gst.Caps caps);
+ public void parse_caps_result (out unowned Gst.Caps? caps);
[Version (since = "1.2")]
- public void parse_context (out unowned Gst.Context context);
+ public void parse_context (out unowned Gst.Context? context);
[Version (since = "1.2")]
public bool parse_context_type (out unowned string context_type);
public void parse_convert (out Gst.Format src_format, out int64 src_value, out Gst.Format dest_format, out int64 dest_value);
@@ -2304,8 +2319,8 @@ namespace Gst {
public void parse_latency (out bool live, out Gst.ClockTime min_latency, out Gst.ClockTime max_latency);
public void parse_n_formats (out uint n_formats);
public GLib.Type parse_nth_allocation_meta (uint index, out unowned Gst.Structure @params);
- 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 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 (uint nth, out Gst.Format format);
public Gst.PadMode parse_nth_scheduling_mode (uint index);
@@ -2315,9 +2330,9 @@ namespace Gst {
public void parse_segment (out double rate, out Gst.Format format, out int64 start_value, out int64 stop_value);
[Version (since = "1.22")]
public void parse_selectable (out bool selectable);
- public void parse_uri (out string uri);
+ public void parse_uri (out string? uri);
[Version (since = "1.2")]
- public void parse_uri_redirection (out string uri);
+ public void parse_uri_redirection (out string? uri);
[Version (since = "1.4")]
public void parse_uri_redirection_permanent (out bool permanent);
[CCode (has_construct_function = false)]
@@ -2343,9 +2358,9 @@ namespace Gst {
public void set_buffering_percent (bool busy, int percent);
public void set_buffering_range (Gst.Format format, int64 start, int64 stop, int64 estimated_total);
public void set_buffering_stats (Gst.BufferingMode mode, int avg_in, int avg_out, int64 buffering_left);
- public void set_caps_result (Gst.Caps caps);
+ public void set_caps_result (Gst.Caps? caps);
[Version (since = "1.2")]
- public void set_context (Gst.Context context);
+ public void set_context (Gst.Context? context);
public void set_convert (Gst.Format src_format, int64 src_value, Gst.Format dest_format, int64 dest_value);
public void set_duration (Gst.Format format, int64 duration);
[CCode (sentinel = "")]
@@ -2360,9 +2375,9 @@ namespace Gst {
public void set_segment (double rate, Gst.Format format, int64 start_value, int64 stop_value);
[Version (since = "1.22")]
public void set_selectable (bool selectable);
- public void set_uri (string uri);
+ public void set_uri (string? uri);
[Version (since = "1.2")]
- public void set_uri_redirection (string uri);
+ public void set_uri_redirection (string? uri);
[Version (since = "1.4")]
public void set_uri_redirection_permanent (bool permanent);
[Version (since = "1.16")]
@@ -2665,7 +2680,7 @@ namespace Gst {
public void set_scope (Gst.TagScope scope);
[Version (since = "1.16")]
public static bool take (ref Gst.TagList old_taglist, owned Gst.TagList? new_taglist);
- public string? to_string ();
+ public string to_string ();
[CCode (has_construct_function = false)]
public TagList.valist (va_list var_args);
}
@@ -2715,7 +2730,7 @@ namespace Gst {
public unowned Gst.TocEntry? find_entry (string uid);
public unowned GLib.List<Gst.TocEntry> get_entries ();
public Gst.TocScope get_scope ();
- public unowned Gst.TagList get_tags ();
+ public unowned Gst.TagList? get_tags ();
public void merge_tags (Gst.TagList? tags, Gst.TagMergeMode mode);
public void set_tags (owned Gst.TagList? tags);
}
@@ -2731,8 +2746,8 @@ namespace Gst {
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 ();
- public unowned Gst.Toc get_toc ();
+ public unowned Gst.TagList? get_tags ();
+ public unowned Gst.Toc? get_toc ();
public unowned string get_uid ();
public bool is_alternative ();
public bool is_sequence ();
@@ -2783,9 +2798,9 @@ namespace Gst {
[Version (since = "1.6")]
public Uri (string? scheme, string? userinfo, string? host, uint port, string? path, string? query, string? fragment);
[Version (since = "1.6")]
- public bool append_path (string relative_path);
+ public bool append_path (string? relative_path);
[Version (since = "1.6")]
- public bool append_path_segment (string path_segment);
+ public bool append_path_segment (string? path_segment);
[Version (deprecated = true)]
public static string @construct (string protocol, string location);
[Version (since = "1.6")]
@@ -2797,7 +2812,7 @@ namespace Gst {
[Version (since = "1.18")]
public static Gst.Uri? from_string_escaped (string uri);
[Version (since = "1.6")]
- public Gst.Uri from_string_with_base (string uri);
+ public Gst.Uri? from_string_with_base (string uri);
[Version (since = "1.6")]
public unowned string? get_fragment ();
[Version (since = "1.6")]
@@ -2818,6 +2833,8 @@ namespace Gst {
public GLib.List<weak string> get_query_keys ();
[Version (since = "1.6")]
public string? get_query_string ();
+ [Version (since = "1.24")]
+ public string? get_query_string_ordered (GLib.List<string>? keys);
[Version (since = "1.6")]
public GLib.HashTable<string,string>? get_query_table ();
[Version (since = "1.6")]
@@ -2834,7 +2851,7 @@ namespace Gst {
[Version (since = "1.6")]
public Gst.Uri? join (Gst.Uri? ref_uri);
[Version (since = "1.6")]
- public static string join_strings (string base_uri, string ref_uri);
+ public static string? join_strings (string base_uri, string ref_uri);
[DestroysInstance]
[ReturnsModifiedPointer]
[Version (since = "1.6")]
@@ -2856,7 +2873,7 @@ namespace Gst {
[Version (since = "1.6")]
public bool set_host (string host);
[Version (since = "1.6")]
- public bool set_path (string path);
+ public bool set_path (string? path);
[Version (since = "1.6")]
public bool set_path_segments (owned GLib.List<string>? path_segments);
[Version (since = "1.6")]
@@ -2864,7 +2881,7 @@ namespace Gst {
[Version (since = "1.6")]
public bool set_port (uint port);
[Version (since = "1.6")]
- public bool set_query_string (string query);
+ public bool set_query_string (string? query);
[Version (since = "1.6")]
public bool set_query_table (GLib.HashTable<string,string>? query_table);
[Version (since = "1.6")]
@@ -2875,6 +2892,8 @@ namespace Gst {
public bool set_userinfo (string userinfo);
[Version (since = "1.6")]
public string to_string ();
+ [Version (since = "1.24")]
+ public string to_string_with_keys (GLib.List<string>? keys);
[DestroysInstance]
[Version (since = "1.6")]
public void unref ();
@@ -2912,6 +2931,8 @@ namespace Gst {
public void @get (...);
public abstract GLib.Object? get_child_by_index (uint index);
public abstract GLib.Object? get_child_by_name (string name);
+ [Version (since = "1.22")]
+ public GLib.Object? get_child_by_name_recurse (string name);
public abstract uint get_children_count ();
public void get_property (string name, ref GLib.Value value);
public void get_valist (string first_property_name, va_list var_args);
@@ -3167,8 +3188,7 @@ namespace Gst {
public weak Gst.TypeFindGetLengthVFunc get_length_v;
public uint64 get_length ();
public static GLib.Type get_type ();
- [CCode (array_length_pos = 1.1, array_length_type = "guint")]
- public unowned uint8[]? peek (int64 offset);
+ public unowned uint8? peek (int64 offset, uint size);
public static bool register (Gst.Plugin? plugin, string name, uint rank, [CCode (delegate_target_pos = 6.1, destroy_notify_pos = 6.2)] owned Gst.TypeFindFunction func, string? extensions, Gst.Caps? possible_caps);
public void suggest (uint probability, Gst.Caps caps);
[Version (since = "1.20")]
@@ -3406,6 +3426,8 @@ namespace Gst {
public Gst.EventTypeFlags get_flags ();
public unowned string get_name ();
public GLib.Quark to_quark ();
+ [Version (since = "1.22")]
+ public uint to_sticky_ordering ();
}
[CCode (cheader_filename = "gst/gst.h", cprefix = "GST_EVENT_TYPE_", type_id = "gst_event_type_flags_get_type ()")]
[Flags]
@@ -4266,6 +4288,9 @@ namespace Gst {
public const Gst.LockFlags LOCK_FLAG_READWRITE;
[CCode (cheader_filename = "gst/gst.h", cname = "GST_MAP_READWRITE")]
public const Gst.MapFlags MAP_READWRITE;
+ [CCode (cheader_filename = "gst/gst.h", cname = "GST_META_TAG_MEMORY_REFERENCE_STR")]
+ [Version (since = "1.20.4")]
+ public const string META_TAG_MEMORY_REFERENCE_STR;
[CCode (cheader_filename = "gst/gst.h", cname = "GST_META_TAG_MEMORY_STR")]
[Version (since = "1.2")]
public const string META_TAG_MEMORY_STR;
@@ -4386,7 +4411,10 @@ namespace Gst {
[Version (replacement = "EventType.to_quark")]
public static GLib.Quark event_type_to_quark (Gst.EventType type);
[CCode (cheader_filename = "gst/gst.h")]
- public static string filename_to_uri (string filename) throws GLib.Error;
+ [Version (replacement = "EventType.to_sticky_ordering", since = "1.22")]
+ public static uint event_type_to_sticky_ordering (Gst.EventType type);
+ [CCode (cheader_filename = "gst/gst.h")]
+ public static string? filename_to_uri (string filename) throws GLib.Error;
[CCode (cheader_filename = "gst/gst.h")]
public static GLib.Quark flow_to_quark (Gst.FlowReturn ret);
[CCode (cheader_filename = "gst/gst.h")]
@@ -4542,7 +4570,7 @@ namespace Gst {
public static bool type_find_register (Gst.Plugin? plugin, string name, uint rank, [CCode (delegate_target_pos = 6.1, destroy_notify_pos = 6.2)] owned Gst.TypeFindFunction func, string? extensions, Gst.Caps? possible_caps);
[CCode (cheader_filename = "gst/gst.h")]
[Version (since = "1.18")]
- public static bool type_is_plugin_api (GLib.Type type, out Gst.PluginAPIFlags? flags);
+ public static bool type_is_plugin_api (GLib.Type type, out Gst.PluginAPIFlags flags);
[CCode (cheader_filename = "gst/gst.h")]
[Version (since = "1.18")]
public static void type_mark_as_plugin_api (GLib.Type type, Gst.PluginAPIFlags flags);
diff --git a/vapi/gstreamer-allocators-1.0.vapi b/vapi/gstreamer-allocators-1.0.vapi
index 799e9b066..e2455ccf0 100644
--- a/vapi/gstreamer-allocators-1.0.vapi
+++ b/vapi/gstreamer-allocators-1.0.vapi
@@ -11,9 +11,9 @@ namespace Gst {
[Version (since = "1.2")]
public DmaBufAllocator ();
[Version (since = "1.2")]
- public static Gst.Memory alloc (Gst.Allocator allocator, int fd, size_t size);
+ public static Gst.Memory? alloc (Gst.Allocator allocator, int fd, size_t size);
[Version (since = "1.16")]
- public static Gst.Memory alloc_with_flags (Gst.Allocator allocator, int fd, size_t size, Gst.Allocators.FdMemoryFlags flags);
+ public static Gst.Memory? alloc_with_flags (Gst.Allocator allocator, int fd, size_t size, Gst.Allocators.FdMemoryFlags flags);
}
[CCode (cheader_filename = "gst/allocators/allocators.h", cname = "GstFdAllocator", lower_case_cprefix = "gst_fd_allocator_", type_id = "gst_fd_allocator_get_type ()")]
[GIR (name = "FdAllocator")]
@@ -21,7 +21,7 @@ namespace Gst {
public class FdAllocator : Gst.Allocator {
[CCode (has_construct_function = false, type = "GstAllocator*")]
public FdAllocator ();
- public static Gst.Memory alloc (Gst.Allocator allocator, int fd, size_t size, Gst.Allocators.FdMemoryFlags flags);
+ public static Gst.Memory? alloc (Gst.Allocator allocator, int fd, size_t size, Gst.Allocators.FdMemoryFlags flags);
}
[CCode (cheader_filename = "gst/allocators/allocators.h", cname = "GstPhysMemoryAllocator", lower_case_cprefix = "gst_phys_memory_allocator_", type_cname = "GstPhysMemoryAllocatorInterface", type_id = "gst_phys_memory_allocator_get_type ()")]
[GIR (name = "PhysMemoryAllocator")]
diff --git a/vapi/gstreamer-app-1.0.vapi b/vapi/gstreamer-app-1.0.vapi
index b7821b675..0e59decdc 100644
--- a/vapi/gstreamer-app-1.0.vapi
+++ b/vapi/gstreamer-app-1.0.vapi
@@ -10,7 +10,7 @@ namespace Gst {
protected Sink ();
[Version (since = "1.12")]
public bool get_buffer_list_support ();
- public Gst.Caps get_caps ();
+ public Gst.Caps? get_caps ();
public bool get_drop ();
public bool get_emit_signals ();
public uint get_max_buffers ();
@@ -37,24 +37,24 @@ namespace Gst {
[Version (since = "1.20")]
public signal bool new_serialized_event ();
[HasEmitter]
- public virtual signal Gst.Sample pull_preroll ();
+ public virtual signal Gst.Sample? pull_preroll ();
[HasEmitter]
- public virtual signal Gst.Sample pull_sample ();
+ public virtual signal Gst.Sample? pull_sample ();
[Version (since = "1.20")]
- public virtual signal Gst.MiniObject try_pull_object (uint64 timeout);
+ public virtual signal Gst.MiniObject? try_pull_object (uint64 timeout);
[HasEmitter]
[Version (since = "1.10")]
- public virtual signal Gst.Sample try_pull_preroll (uint64 timeout);
+ public virtual signal Gst.Sample? try_pull_preroll (uint64 timeout);
[HasEmitter]
[Version (since = "1.10")]
- public virtual signal Gst.Sample try_pull_sample (uint64 timeout);
+ public virtual signal Gst.Sample? try_pull_sample (uint64 timeout);
}
[CCode (cheader_filename = "gst/app/app.h", type_id = "gst_app_src_get_type ()")]
[GIR (name = "AppSrc")]
public class Src : Gst.Base.Src, Gst.URIHandler {
[CCode (has_construct_function = false)]
protected Src ();
- public Gst.Caps get_caps ();
+ public Gst.Caps? get_caps ();
[Version (since = "1.20")]
public uint64 get_current_level_buffers ();
[Version (since = "1.2")]
diff --git a/vapi/gstreamer-audio-1.0.vapi b/vapi/gstreamer-audio-1.0.vapi
index b05f381e8..de8fcec96 100644
--- a/vapi/gstreamer-audio-1.0.vapi
+++ b/vapi/gstreamer-audio-1.0.vapi
@@ -20,6 +20,9 @@ namespace Gst {
[NoAccessorMethod]
public uint64 discont_wait { get; set; }
[NoAccessorMethod]
+ [Version (since = "1.22")]
+ public bool force_live { get; construct; }
+ [NoAccessorMethod]
[Version (since = "1.20")]
public bool ignore_inactive_pads { get; set; }
[NoAccessorMethod]
@@ -61,7 +64,7 @@ namespace Gst {
public weak Gst.Audio.RingBuffer ringbuffer;
[CCode (has_construct_function = false)]
protected BaseSink ();
- public virtual unowned Gst.Audio.RingBuffer create_ringbuffer ();
+ public virtual unowned Gst.Audio.RingBuffer? create_ringbuffer ();
public Gst.ClockTime get_alignment_threshold ();
public Gst.ClockTime get_discont_wait ();
public int64 get_drift_tolerance ();
@@ -98,7 +101,7 @@ namespace Gst {
public weak Gst.Audio.RingBuffer ringbuffer;
[CCode (has_construct_function = false)]
protected BaseSrc ();
- public virtual unowned Gst.Audio.RingBuffer create_ringbuffer ();
+ public virtual unowned Gst.Audio.RingBuffer? create_ringbuffer ();
public bool get_provide_clock ();
public Gst.Audio.BaseSrcSlaveMethod get_slave_method ();
public void set_provide_clock (bool provide);
@@ -194,7 +197,7 @@ namespace Gst {
public Gst.FlowReturn finish_subframe (owned Gst.Buffer? buf);
[NoWrapper]
public virtual void flush (bool hard);
- public void get_allocator (out Gst.Allocator allocator, out Gst.AllocationParams @params);
+ public void get_allocator (out Gst.Allocator? allocator, out Gst.AllocationParams @params);
public unowned Gst.Audio.Info get_audio_info ();
public int get_delay ();
public bool get_drainable ();
@@ -279,7 +282,7 @@ namespace Gst {
public Gst.FlowReturn finish_frame (owned Gst.Buffer? buffer, int samples);
[NoWrapper]
public virtual void flush ();
- public void get_allocator (out Gst.Allocator allocator, out Gst.AllocationParams @params);
+ public void get_allocator (out Gst.Allocator? allocator, out Gst.AllocationParams @params);
public unowned Gst.Audio.Info get_audio_info ();
public bool get_drainable ();
public int get_frame_max ();
@@ -547,7 +550,7 @@ namespace Gst {
public int n_planes;
public void* planes;
public weak Gst.Buffer buffer;
- public static Gst.Buffer clip (owned Gst.Buffer buffer, Gst.Segment segment, int rate, int bpf);
+ public static Gst.Buffer? clip (owned Gst.Buffer buffer, Gst.Segment segment, int rate, int bpf);
public bool map (Gst.Audio.Info info, Gst.Buffer gstbuffer, Gst.MapFlags flags);
public static bool reorder_channels (Gst.Buffer buffer, Gst.Audio.Format format, [CCode (array_length_cname = "channels", array_length_pos = 2.5)] Gst.Audio.ChannelPosition[] from, [CCode (array_length_cname = "channels", array_length_pos = 2.5)] Gst.Audio.ChannelPosition[] to);
public static Gst.Buffer truncate (owned Gst.Buffer buffer, int bpf, size_t trim, size_t samples);
@@ -988,7 +991,7 @@ namespace Gst {
public const int RESAMPLER_QUALITY_MIN;
[CCode (cheader_filename = "gst/audio/audio.h", cname = "gst_audio_buffer_clip")]
[Version (replacement = "AudioBuffer.clip")]
- public static Gst.Buffer audio_buffer_clip (owned Gst.Buffer buffer, Gst.Segment segment, int rate, int bpf);
+ public static Gst.Buffer? audio_buffer_clip (owned Gst.Buffer buffer, Gst.Segment segment, int rate, int bpf);
[CCode (cheader_filename = "gst/audio/audio.h", cname = "gst_audio_buffer_map")]
[Version (replacement = "AudioBuffer.map", since = "1.16")]
public static bool audio_buffer_map (out Gst.Audio.Buffer buffer, Gst.Audio.Info info, Gst.Buffer gstbuffer, Gst.MapFlags flags);
diff --git a/vapi/gstreamer-base-1.0.vapi b/vapi/gstreamer-base-1.0.vapi
index a7d4a530d..e50400592 100644
--- a/vapi/gstreamer-base-1.0.vapi
+++ b/vapi/gstreamer-base-1.0.vapi
@@ -76,6 +76,8 @@ namespace Gst {
public virtual Gst.FlowReturn flush ();
public void get_allocator (out Gst.Allocator? allocator, out unowned Gst.AllocationParams @params);
public Gst.BufferPool? get_buffer_pool ();
+ [Version (since = "1.22")]
+ public bool get_force_live ();
[Version (since = "1.20")]
public bool get_ignore_inactive_pads ();
public Gst.ClockTime get_latency ();
@@ -91,6 +93,8 @@ namespace Gst {
public virtual bool propose_allocation (Gst.Base.AggregatorPad pad, Gst.Query decide_query, Gst.Query query);
[Version (since = "1.18")]
public void selected_samples (Gst.ClockTime pts, Gst.ClockTime dts, Gst.ClockTime duration, Gst.Structure? info);
+ [Version (since = "1.22")]
+ public void set_force_live (bool force_live);
[Version (since = "1.20")]
public void set_ignore_inactive_pads (bool ignore);
public void set_latency (Gst.ClockTime min_latency, Gst.ClockTime max_latency);
@@ -588,9 +592,9 @@ namespace Gst {
[CCode (has_construct_function = false)]
protected PushSrc ();
[NoWrapper]
- public virtual Gst.FlowReturn alloc (out Gst.Buffer buf);
+ public virtual Gst.FlowReturn alloc (out Gst.Buffer? buf);
[NoWrapper]
- public virtual Gst.FlowReturn create (out Gst.Buffer buf);
+ public virtual Gst.FlowReturn create (out Gst.Buffer? buf);
[NoWrapper]
public virtual Gst.FlowReturn fill (Gst.Buffer buf);
}
@@ -725,9 +729,9 @@ namespace Gst {
[CCode (has_construct_function = false)]
protected Src ();
[NoWrapper]
- public virtual Gst.FlowReturn alloc (uint64 offset, uint size, out 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, ref 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]
@@ -737,7 +741,7 @@ namespace Gst {
[NoWrapper]
public virtual Gst.FlowReturn fill (uint64 offset, uint size, Gst.Buffer buf);
[NoWrapper]
- public virtual Gst.Caps fixate (Gst.Caps caps);
+ public virtual Gst.Caps fixate (owned Gst.Caps caps);
public void get_allocator (out Gst.Allocator? allocator, out unowned Gst.AllocationParams @params);
public uint get_blocksize ();
public Gst.BufferPool? get_buffer_pool ();
@@ -866,6 +870,12 @@ namespace Gst {
[NoAccessorMethod]
public bool qos { get; set; }
}
+ [CCode (cheader_filename = "gst/base/base.h", cname = "GstTypeFindData", has_type_id = false)]
+ [Compact]
+ [GIR (name = "TypeFindData")]
+ [Version (since = "1.22")]
+ public class TypeFindData {
+ }
[CCode (cheader_filename = "gst/base/base.h", cname = "GstBitWriter", has_type_id = false)]
[GIR (name = "BitWriter")]
[Version (since = "1.16")]
@@ -991,11 +1001,17 @@ namespace Gst {
public static Gst.Caps? type_find_helper (Gst.Pad src, uint64 size);
[CCode (cheader_filename = "gst/base/base.h", cname = "gst_type_find_helper_for_buffer")]
public static Gst.Caps? type_find_helper_for_buffer (Gst.Object? obj, Gst.Buffer buf, out Gst.TypeFindProbability prob);
+ [CCode (cheader_filename = "gst/base/base.h", cname = "gst_type_find_helper_for_buffer_with_caps")]
+ [Version (since = "1.22")]
+ public static Gst.Caps? type_find_helper_for_buffer_with_caps (Gst.Object? obj, Gst.Buffer buf, Gst.Caps caps, out Gst.TypeFindProbability prob);
[CCode (cheader_filename = "gst/base/base.h", cname = "gst_type_find_helper_for_buffer_with_extension")]
[Version (since = "1.16")]
public static Gst.Caps? type_find_helper_for_buffer_with_extension (Gst.Object? obj, Gst.Buffer buf, string? extension, out Gst.TypeFindProbability prob);
[CCode (cheader_filename = "gst/base/base.h", cname = "gst_type_find_helper_for_data")]
public static Gst.Caps? type_find_helper_for_data (Gst.Object? obj, [CCode (array_length_cname = "size", array_length_pos = 2.5, array_length_type = "gsize")] uint8[] data, out Gst.TypeFindProbability prob);
+ [CCode (cheader_filename = "gst/base/base.h", cname = "gst_type_find_helper_for_data_with_caps")]
+ [Version (since = "1.22")]
+ public static Gst.Caps? type_find_helper_for_data_with_caps (Gst.Object? obj, [CCode (array_length_cname = "size", array_length_pos = 2.5, array_length_type = "gsize")] uint8[] data, Gst.Caps caps, out Gst.TypeFindProbability prob);
[CCode (cheader_filename = "gst/base/base.h", cname = "gst_type_find_helper_for_data_with_extension")]
[Version (since = "1.16")]
public static Gst.Caps? type_find_helper_for_data_with_extension (Gst.Object? obj, [CCode (array_length_cname = "size", array_length_pos = 2.5, array_length_type = "gsize")] uint8[] data, string? extension, out Gst.TypeFindProbability prob);
@@ -1006,5 +1022,8 @@ namespace Gst {
[CCode (cheader_filename = "gst/base/base.h", cname = "gst_type_find_helper_get_range_full")]
[Version (since = "1.14.3")]
public static Gst.FlowReturn type_find_helper_get_range_full (Gst.Object obj, Gst.Object? parent, Gst.Base.TypeFindHelperGetRangeFunction func, uint64 size, string? extension, out Gst.Caps caps, out Gst.TypeFindProbability prob);
+ [CCode (cheader_filename = "gst/base/base.h", cname = "gst_type_find_list_factories_for_caps")]
+ [Version (since = "1.22")]
+ public static GLib.List<Gst.TypeFindFactory>? type_find_list_factories_for_caps (Gst.Object? obj, Gst.Caps caps);
}
}
diff --git a/vapi/gstreamer-check-1.0.vapi b/vapi/gstreamer-check-1.0.vapi
index 29d83f735..5666b1676 100644
--- a/vapi/gstreamer-check-1.0.vapi
+++ b/vapi/gstreamer-check-1.0.vapi
@@ -112,34 +112,34 @@ namespace Gst {
[CCode (cname = "gst_harness_find_element")]
public Gst.Element? find_element (string element_name);
[CCode (cname = "gst_harness_get_allocator")]
- public void get_allocator (out unowned Gst.Allocator allocator, out Gst.AllocationParams @params);
+ public void get_allocator (out unowned Gst.Allocator? allocator, out unowned Gst.AllocationParams @params);
[CCode (cname = "gst_harness_get_last_pushed_timestamp")]
public Gst.ClockTime get_last_pushed_timestamp ();
[CCode (cname = "gst_harness_get_testclock")]
- public Gst.Check.TestClock get_testclock ();
+ public Gst.Check.TestClock? get_testclock ();
[CCode (cname = "gst_harness_play")]
public void play ();
[CCode (cname = "gst_harness_pull")]
- public Gst.Buffer pull ();
+ public Gst.Buffer? pull ();
[CCode (cname = "gst_harness_pull_event")]
- public Gst.Event pull_event ();
+ public Gst.Event? pull_event ();
[CCode (cname = "gst_harness_pull_until_eos")]
[Version (since = "1.18")]
- public bool pull_until_eos (out Gst.Buffer buf);
+ public bool pull_until_eos (out Gst.Buffer? buf);
[CCode (cname = "gst_harness_pull_upstream_event")]
- public Gst.Event pull_upstream_event ();
+ public Gst.Event? pull_upstream_event ();
[CCode (cname = "gst_harness_push")]
public Gst.FlowReturn push (owned Gst.Buffer buffer);
[CCode (cname = "gst_harness_push_and_pull")]
- public Gst.Buffer push_and_pull (owned 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);
+ public bool push_event (owned Gst.Event event);
[CCode (cname = "gst_harness_push_from_src")]
public Gst.FlowReturn push_from_src ();
[CCode (cname = "gst_harness_push_to_sink")]
public Gst.FlowReturn push_to_sink ();
[CCode (cname = "gst_harness_push_upstream_event")]
- public bool push_upstream_event (Gst.Event event);
+ public bool push_upstream_event (owned Gst.Event event);
[CCode (cname = "gst_harness_query_latency")]
public Gst.ClockTime query_latency ();
[CCode (cname = "gst_harness_set_blocking_push_mode")]
@@ -186,11 +186,11 @@ namespace Gst {
[CCode (cname = "gst_harness_teardown")]
public void teardown ();
[CCode (cname = "gst_harness_try_pull")]
- public Gst.Buffer try_pull ();
+ public Gst.Buffer? try_pull ();
[CCode (cname = "gst_harness_try_pull_event")]
- public Gst.Event try_pull_event ();
+ public Gst.Event? try_pull_event ();
[CCode (cname = "gst_harness_try_pull_upstream_event")]
- public Gst.Event try_pull_upstream_event ();
+ public Gst.Event? try_pull_upstream_event ();
[CCode (cname = "gst_harness_upstream_events_in_queue")]
public uint upstream_events_in_queue ();
[CCode (cname = "gst_harness_upstream_events_received")]
diff --git a/vapi/gstreamer-controller-1.0.vapi b/vapi/gstreamer-controller-1.0.vapi
index 889249955..7b2b72649 100644
--- a/vapi/gstreamer-controller-1.0.vapi
+++ b/vapi/gstreamer-controller-1.0.vapi
@@ -91,7 +91,7 @@ namespace Gst {
public GLib.Sequence<Gst.Controller.ControlPoint?> values;
[CCode (has_construct_function = false)]
protected TimedValueControlSource ();
- public unowned GLib.SequenceIter find_control_point_iter (Gst.ClockTime timestamp);
+ public unowned GLib.SequenceIter? find_control_point_iter (Gst.ClockTime timestamp);
public GLib.List<weak Gst.TimedValue?> get_all ();
public int get_count ();
public bool @set (Gst.ClockTime timestamp, double value);
diff --git a/vapi/gstreamer-net-1.0.vapi b/vapi/gstreamer-net-1.0.vapi
index be7579fe0..deb4484c5 100644
--- a/vapi/gstreamer-net-1.0.vapi
+++ b/vapi/gstreamer-net-1.0.vapi
@@ -7,7 +7,7 @@ namespace Gst {
[GIR (name = "NetClientClock")]
public class ClientClock : Gst.SystemClock {
[CCode (has_construct_function = false, type = "GstClock*")]
- public ClientClock (string name, string remote_address, int remote_port, Gst.ClockTime base_time);
+ public ClientClock (string? name, string remote_address, int remote_port, Gst.ClockTime base_time);
[NoAccessorMethod]
public string address { owned get; set construct; }
[NoAccessorMethod]
@@ -30,7 +30,7 @@ namespace Gst {
public class NtpClock : Gst.Net.ClientClock {
[CCode (has_construct_function = false, type = "GstClock*")]
[Version (since = "1.6")]
- public NtpClock (string name, string remote_address, int remote_port, Gst.ClockTime base_time);
+ public NtpClock (string? name, string remote_address, int remote_port, Gst.ClockTime base_time);
}
[CCode (cheader_filename = "gst/net/net.h", cname = "GstPtpClock", lower_case_cprefix = "gst_ptp_clock_", type_id = "gst_ptp_clock_get_type ()")]
[GIR (name = "PtpClock")]
@@ -56,12 +56,13 @@ namespace Gst {
[CCode (cname = "GST_NET_TIME_PACKET_SIZE")]
public const int SIZE;
[CCode (has_construct_function = false)]
- public TimePacket ([CCode (array_length = false)] uint8[] buffer);
+ public TimePacket ([CCode (array_length = false)] uint8 buffer[16]);
public Gst.Net.TimePacket copy ();
public void free ();
public static Gst.Net.TimePacket receive (GLib.Socket socket, out GLib.SocketAddress src_address) throws GLib.Error;
public bool send (GLib.Socket socket, GLib.SocketAddress dest_address) throws GLib.Error;
- public uint8 serialize ();
+ [CCode (array_length = false, array_length_cexpr = "16")]
+ public uint8[] serialize ();
}
[CCode (cheader_filename = "gst/net/net.h", type_id = "gst_net_time_provider_get_type ()")]
[GIR (name = "NetTimeProvider")]
diff --git a/vapi/gstreamer-pbutils-1.0.vapi b/vapi/gstreamer-pbutils-1.0.vapi
index d09cf34ee..98d941b3e 100644
--- a/vapi/gstreamer-pbutils-1.0.vapi
+++ b/vapi/gstreamer-pbutils-1.0.vapi
@@ -91,7 +91,7 @@ namespace Gst {
public uint64 get_channel_mask ();
public uint get_channels ();
public uint get_depth ();
- public unowned string get_language ();
+ public unowned string? get_language ();
public uint get_max_bitrate ();
public uint get_sample_rate ();
}
@@ -102,7 +102,7 @@ namespace Gst {
protected DiscovererContainerInfo ();
public GLib.List<Gst.PbUtils.DiscovererStreamInfo> get_streams ();
[Version (since = "1.20")]
- public unowned Gst.TagList get_tags ();
+ public unowned Gst.TagList? get_tags ();
}
[CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "GstDiscovererInfo", lower_case_cprefix = "gst_discoverer_info_", type_id = "gst_discoverer_info_get_type ()")]
[GIR (name = "DiscovererInfo")]
@@ -112,27 +112,27 @@ namespace Gst {
public Gst.PbUtils.DiscovererInfo copy ();
[Version (since = "1.6")]
public static Gst.PbUtils.DiscovererInfo from_variant (GLib.Variant variant);
- public GLib.List<Gst.PbUtils.DiscovererStreamInfo> get_audio_streams ();
- public GLib.List<Gst.PbUtils.DiscovererStreamInfo> get_container_streams ();
+ public GLib.List<Gst.PbUtils.DiscovererAudioInfo> get_audio_streams ();
+ public GLib.List<Gst.PbUtils.DiscovererContainerInfo> get_container_streams ();
public Gst.ClockTime get_duration ();
[Version (since = "1.14")]
public bool get_live ();
[Version (deprecated = true)]
- public unowned Gst.Structure get_misc ();
+ public unowned Gst.Structure? get_misc ();
[CCode (array_length = false, array_null_terminated = true)]
[Version (since = "1.4")]
public unowned string[] get_missing_elements_installer_details ();
public Gst.PbUtils.DiscovererResult get_result ();
public bool get_seekable ();
- public Gst.PbUtils.DiscovererStreamInfo get_stream_info ();
+ public Gst.PbUtils.DiscovererStreamInfo? get_stream_info ();
public GLib.List<Gst.PbUtils.DiscovererStreamInfo> get_stream_list ();
public GLib.List<Gst.PbUtils.DiscovererStreamInfo> get_streams (GLib.Type streamtype);
- public GLib.List<Gst.PbUtils.DiscovererStreamInfo> get_subtitle_streams ();
+ public GLib.List<Gst.PbUtils.DiscovererSubtitleInfo> get_subtitle_streams ();
[Version (deprecated = true, deprecated_since = "1.20")]
- public unowned Gst.TagList get_tags ();
- public unowned Gst.Toc get_toc ();
+ public unowned Gst.TagList? get_tags ();
+ public unowned Gst.Toc? get_toc ();
public unowned string get_uri ();
- public GLib.List<Gst.PbUtils.DiscovererStreamInfo> get_video_streams ();
+ public GLib.List<Gst.PbUtils.DiscovererVideoInfo> get_video_streams ();
[Version (since = "1.6")]
public GLib.Variant to_variant (Gst.PbUtils.DiscovererSerializeFlags flags);
}
@@ -141,17 +141,17 @@ namespace Gst {
public class DiscovererStreamInfo : GLib.Object {
[CCode (has_construct_function = false)]
protected DiscovererStreamInfo ();
- public Gst.Caps get_caps ();
+ public Gst.Caps? get_caps ();
[Version (deprecated = true)]
- public unowned Gst.Structure get_misc ();
- public Gst.PbUtils.DiscovererStreamInfo get_next ();
- public Gst.PbUtils.DiscovererStreamInfo get_previous ();
+ public unowned Gst.Structure? get_misc ();
+ public Gst.PbUtils.DiscovererStreamInfo? get_next ();
+ public Gst.PbUtils.DiscovererStreamInfo? get_previous ();
public unowned string get_stream_id ();
[Version (since = "1.20")]
public int get_stream_number ();
public unowned string get_stream_type_nick ();
- public unowned Gst.TagList get_tags ();
- public unowned Gst.Toc get_toc ();
+ public unowned Gst.TagList? get_tags ();
+ public unowned Gst.Toc? get_toc ();
public static void list_free (GLib.List<Gst.PbUtils.DiscovererStreamInfo> infos);
}
[CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "GstDiscovererSubtitleInfo", lower_case_cprefix = "gst_discoverer_subtitle_info_", type_id = "gst_discoverer_subtitle_info_get_type ()")]
@@ -159,7 +159,7 @@ namespace Gst {
public class DiscovererSubtitleInfo : Gst.PbUtils.DiscovererStreamInfo {
[CCode (has_construct_function = false)]
protected DiscovererSubtitleInfo ();
- public unowned string get_language ();
+ public unowned string? get_language ();
}
[CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "GstDiscovererVideoInfo", lower_case_cprefix = "gst_discoverer_video_info_", type_id = "gst_discoverer_video_info_get_type ()")]
[GIR (name = "DiscovererVideoInfo")]
@@ -200,20 +200,20 @@ namespace Gst {
protected EncodingProfile ();
[Version (since = "1.12")]
public Gst.PbUtils.EncodingProfile copy ();
- public static Gst.PbUtils.EncodingProfile find (string targetname, string? profilename, string? category);
- public static Gst.PbUtils.EncodingProfile from_discoverer (Gst.PbUtils.DiscovererInfo info);
+ public static Gst.PbUtils.EncodingProfile? find (string targetname, string? profilename, string? category);
+ public static Gst.PbUtils.EncodingProfile? from_discoverer (Gst.PbUtils.DiscovererInfo info);
public bool get_allow_dynamic_output ();
- public unowned string get_description ();
+ public unowned string? get_description ();
[Version (since = "1.20")]
public Gst.Structure? get_element_properties ();
- public unowned string get_file_extension ();
+ public unowned string? get_file_extension ();
public Gst.Caps get_format ();
public Gst.Caps get_input_caps ();
- public unowned string get_name ();
+ public unowned string? get_name ();
public uint get_presence ();
- public unowned string get_preset ();
- public unowned string get_preset_name ();
- public Gst.Caps get_restriction ();
+ public unowned string? get_preset ();
+ public unowned string? get_preset_name ();
+ public Gst.Caps? get_restriction ();
[Version (since = "1.18")]
public bool get_single_segment ();
public unowned string get_type_nick ();
@@ -248,8 +248,8 @@ namespace Gst {
public unowned string get_description ();
public unowned string get_name ();
[Version (since = "1.18")]
- public unowned string get_path ();
- public Gst.PbUtils.EncodingProfile get_profile (string name);
+ public unowned string? get_path ();
+ public Gst.PbUtils.EncodingProfile? get_profile (string name);
public unowned GLib.List<Gst.PbUtils.EncodingProfile> get_profiles ();
public static Gst.PbUtils.EncodingTarget load (string name, string? category) throws GLib.Error;
public static Gst.PbUtils.EncodingTarget load_from_file (string filepath) throws GLib.Error;
@@ -397,13 +397,13 @@ namespace Gst {
public static unowned string? codec_utils_h265_get_tier ([CCode (array_length_cname = "len", array_length_pos = 1.1, array_length_type = "guint")] uint8[] profile_tier_level);
[CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "gst_codec_utils_opus_create_caps")]
[Version (since = "1.8")]
- public static Gst.Caps codec_utils_opus_create_caps (uint32 rate, uint8 channels, uint8 channel_mapping_family, uint8 stream_count, uint8 coupled_count, [CCode (array_length = false)] uint8[]? channel_mapping);
+ public static Gst.Caps? codec_utils_opus_create_caps (uint32 rate, uint8 channels, uint8 channel_mapping_family, uint8 stream_count, uint8 coupled_count, [CCode (array_length = false)] uint8[]? channel_mapping);
[CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "gst_codec_utils_opus_create_caps_from_header")]
[Version (since = "1.8")]
- public static Gst.Caps codec_utils_opus_create_caps_from_header (Gst.Buffer header, Gst.Buffer? comments);
+ public static Gst.Caps? codec_utils_opus_create_caps_from_header (Gst.Buffer header, Gst.Buffer? comments);
[CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "gst_codec_utils_opus_create_header")]
[Version (since = "1.8")]
- public static Gst.Buffer codec_utils_opus_create_header (uint32 rate, uint8 channels, uint8 channel_mapping_family, uint8 stream_count, uint8 coupled_count, [CCode (array_length = false)] uint8[]? channel_mapping, uint16 pre_skip, int16 output_gain);
+ public static Gst.Buffer? codec_utils_opus_create_header (uint32 rate, uint8 channels, uint8 channel_mapping_family, uint8 stream_count, uint8 coupled_count, [CCode (array_length = false)] uint8[]? channel_mapping, uint16 pre_skip, int16 output_gain);
[CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "gst_codec_utils_opus_parse_caps")]
[Version (since = "1.8")]
public static bool codec_utils_opus_parse_caps (Gst.Caps caps, out uint32 rate, out uint8 channels, out uint8 channel_mapping_family, out uint8 stream_count, out uint8 coupled_count, [CCode (array_length = false)] out uint8 channel_mapping[256]);
@@ -418,7 +418,7 @@ namespace Gst {
[Version (since = "1.20")]
public static Gst.PbUtils.PbUtilsCapsDescriptionFlags get_caps_description_flags (Gst.Caps caps);
[CCode (cheader_filename = "gst/pbutils/pbutils.h")]
- public static string get_codec_description (Gst.Caps caps);
+ public static string? get_codec_description (Gst.Caps caps);
[CCode (cheader_filename = "gst/pbutils/pbutils.h")]
public static string get_decoder_description (Gst.Caps caps);
[CCode (cheader_filename = "gst/pbutils/pbutils.h")]
@@ -462,7 +462,7 @@ namespace Gst {
[CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "gst_missing_plugin_message_get_description")]
public static string missing_plugin_message_get_description (Gst.Message msg);
[CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "gst_missing_plugin_message_get_installer_detail")]
- public static string missing_plugin_message_get_installer_detail (Gst.Message msg);
+ public static string? missing_plugin_message_get_installer_detail (Gst.Message msg);
[CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "gst_missing_uri_sink_installer_detail_new")]
public static string missing_uri_sink_installer_detail_new (string protocol);
[CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "gst_missing_uri_sink_message_new")]
diff --git a/vapi/gstreamer-play-1.0.vapi b/vapi/gstreamer-play-1.0.vapi
index 092514f6a..e298c73a4 100644
--- a/vapi/gstreamer-play-1.0.vapi
+++ b/vapi/gstreamer-play-1.0.vapi
@@ -139,7 +139,7 @@ namespace Gst {
public signal void buffering (int object);
public signal void duration_changed (uint64 object);
public signal void end_of_stream ();
- public signal void error (GLib.Error object, Gst.Structure p0);
+ public signal void error (GLib.Error error, Gst.Structure? details);
public signal void media_info_updated (Gst.Play.MediaInfo object);
public signal void mute_changed (bool object);
public signal void position_updated (uint64 object);
@@ -148,7 +148,7 @@ namespace Gst {
public signal void uri_loaded (string object);
public signal void video_dimensions_changed (uint object, uint p0);
public signal void volume_changed (double object);
- public signal void warning (GLib.Error object, Gst.Structure p0);
+ public signal void warning (GLib.Error error, Gst.Structure? details);
}
[CCode (cheader_filename = "gst/play/play.h", type_id = "gst_play_stream_info_get_type ()")]
[GIR (name = "PlayStreamInfo")]
diff --git a/vapi/gstreamer-player-1.0.vapi b/vapi/gstreamer-player-1.0.vapi
index 4eb3b9526..fe2ab3c49 100644
--- a/vapi/gstreamer-player-1.0.vapi
+++ b/vapi/gstreamer-player-1.0.vapi
@@ -100,7 +100,7 @@ namespace Gst {
[NoAccessorMethod]
public Gst.Video.MultiviewFramePacking video_multiview_mode { get; set; }
[NoAccessorMethod]
- public Gst.PlayerVideoRenderer video_renderer { owned get; }
+ public Gst.PlayerVideoRenderer video_renderer { owned get; construct; }
public double volume { get; set; }
public signal void buffering (int object);
public signal void duration_changed (uint64 object);
diff --git a/vapi/gstreamer-rtp-1.0.vapi b/vapi/gstreamer-rtp-1.0.vapi
index 189602288..8cf5572d7 100644
--- a/vapi/gstreamer-rtp-1.0.vapi
+++ b/vapi/gstreamer-rtp-1.0.vapi
@@ -51,7 +51,7 @@ namespace Gst {
public bool bye_add_ssrc (uint32 ssrc);
public bool bye_add_ssrcs ([CCode (array_length_cname = "len", array_length_pos = 1.1, array_length_type = "guint")] uint32[] ssrc);
public uint32 bye_get_nth_ssrc (uint nth);
- public string bye_get_reason ();
+ public string? bye_get_reason ();
public uint8 bye_get_reason_len ();
public uint bye_get_ssrc_count ();
public bool bye_set_reason (string reason);
@@ -302,8 +302,8 @@ namespace Gst {
public virtual Gst.Buffer process (Gst.Buffer @in);
[NoWrapper]
public virtual Gst.Buffer process_rtp_packet (Gst.RTP.Buffer rtp_buffer);
- public Gst.FlowReturn push (Gst.Buffer out_buf);
- public Gst.FlowReturn push_list (Gst.BufferList out_list);
+ public Gst.FlowReturn push (owned Gst.Buffer out_buf);
+ public Gst.FlowReturn push_list (owned Gst.BufferList out_list);
[NoWrapper]
public virtual bool set_caps (Gst.Caps caps);
[Version (since = "1.16")]
@@ -324,7 +324,7 @@ namespace Gst {
[Version (since = "1.20")]
public signal void clear_extensions ();
[Version (since = "1.20")]
- public signal Gst.RTP.HeaderExtension request_extension (uint ext_id, string? ext_uri);
+ public signal Gst.RTP.HeaderExtension? request_extension (uint ext_id, string? ext_uri);
}
[CCode (cheader_filename = "gst/rtp/rtp.h", type_id = "gst_rtp_base_payload_get_type ()")]
[GIR (name = "RTPBasePayload")]
@@ -398,7 +398,7 @@ namespace Gst {
[Version (since = "1.20")]
public signal void clear_extensions ();
[Version (since = "1.20")]
- public signal Gst.RTP.HeaderExtension request_extension (uint ext_id, string ext_uri);
+ public signal Gst.RTP.HeaderExtension? request_extension (uint ext_id, string ext_uri);
}
[CCode (cheader_filename = "gst/rtp/rtp.h", type_id = "gst_rtp_header_extension_get_type ()")]
[GIR (name = "RTPHeaderExtension")]
@@ -412,7 +412,7 @@ namespace Gst {
public virtual size_t get_max_size (Gst.Buffer input_meta);
public string get_sdp_caps_field_name ();
public virtual Gst.RTP.HeaderExtensionFlags get_supported_flags ();
- public unowned string get_uri ();
+ public unowned string? get_uri ();
public virtual bool read (Gst.RTP.HeaderExtensionFlags read_flags, [CCode (array_length_cname = "size", array_length_pos = 2.5, array_length_type = "gsize")] uint8[] data, Gst.Buffer buffer);
[NoWrapper]
public virtual bool set_attributes (Gst.RTP.HeaderExtensionDirection direction, string attributes);
@@ -451,7 +451,7 @@ namespace Gst {
public uint8 get_csrc_count ();
public bool get_extension ();
[Version (since = "1.2")]
- public GLib.Bytes get_extension_bytes (out uint16 bits);
+ public GLib.Bytes? get_extension_bytes (out uint16 bits);
public bool get_extension_data (out uint16 bits, [CCode (array_length = false)] out unowned uint8[] data, out uint wordlen);
public bool get_extension_onebyte_header (uint8 id, uint nth, [CCode (array_length_cname = "size", array_length_pos = 3.1, array_length_type = "guint")] out unowned uint8[] data);
[Version (since = "1.18")]
@@ -462,10 +462,10 @@ namespace Gst {
public uint get_packet_len ();
public bool get_padding ();
[CCode (array_length = false)]
- public unowned uint8[] get_payload ();
+ public unowned uint8[]? get_payload ();
public Gst.Buffer get_payload_buffer ();
[Version (since = "1.2")]
- public GLib.Bytes get_payload_bytes ();
+ public GLib.Bytes? get_payload_bytes ();
public uint get_payload_len ();
public Gst.Buffer get_payload_subbuffer (uint offset, uint len);
public uint8 get_payload_type ();
@@ -516,7 +516,7 @@ namespace Gst {
[CCode (array_length = false)]
public weak uint32 csrc[15];
public uint csrc_count;
- public bool append_csrc ([CCode (array_length_cname = "csrc_count", array_length_pos = 1.1, array_length_type = "guint", type = "const guint32*")] uint32[] csrc);
+ public bool append_csrc ([CCode (array_length_cname = "csrc_count", array_length_pos = 1.1, array_length_type = "guint")] uint32[] csrc);
public static unowned Gst.MetaInfo? get_info ();
public uint get_source_count ();
public bool set_ssrc (uint32? ssrc);
@@ -654,7 +654,7 @@ namespace Gst {
public const int VERSION;
[CCode (cheader_filename = "gst/rtp/rtp.h", cname = "gst_buffer_add_rtp_source_meta")]
[Version (since = "1.16")]
- public static unowned Gst.RTP.SourceMeta? buffer_add_rtp_source_meta (Gst.Buffer buffer, uint32? ssrc, uint32? csrc, uint csrc_count);
+ public static unowned Gst.RTP.SourceMeta? buffer_add_rtp_source_meta (Gst.Buffer buffer, uint32? ssrc, [CCode (array_length_cname = "csrc_count", array_length_pos = 3.1, array_length_type = "guint")] uint32[]? csrc);
[CCode (cheader_filename = "gst/rtp/rtp.h")]
[Version (replacement = "RTPBuffer.allocate_data")]
public static void buffer_allocate_data (Gst.Buffer buffer, uint payload_len, uint8 pad_len, uint8 csrc_count);
diff --git a/vapi/gstreamer-rtsp-1.0.vapi b/vapi/gstreamer-rtsp-1.0.vapi
index 7ecdbdbfe..5d7ede440 100644
--- a/vapi/gstreamer-rtsp-1.0.vapi
+++ b/vapi/gstreamer-rtsp-1.0.vapi
@@ -26,7 +26,7 @@ namespace Gst {
[Compact]
[GIR (name = "RTSPConnection")]
public class Connection {
- public static Gst.RTSP.Result accept (GLib.Socket socket, out Gst.RTSP.Connection conn, GLib.Cancellable? cancellable = null);
+ public static Gst.RTSP.Result accept (GLib.Socket socket, out Gst.RTSP.Connection? conn, GLib.Cancellable? cancellable = null);
public void clear_auth_params ();
public Gst.RTSP.Result close ();
[Version (deprecated = true, deprecated_since = "1.18")]
@@ -38,43 +38,43 @@ namespace Gst {
[Version (since = "1.18")]
public Gst.RTSP.Result connect_with_response_usec (int64 timeout, Gst.RTSP.Message response);
public static Gst.RTSP.Result create (Gst.RTSP.Url url, out Gst.RTSP.Connection conn);
- public static Gst.RTSP.Result create_from_socket (GLib.Socket socket, string ip, uint16 port, string initial_buffer, out Gst.RTSP.Connection conn);
- public Gst.RTSP.Result do_tunnel (Gst.RTSP.Connection conn2);
+ public static Gst.RTSP.Result create_from_socket (GLib.Socket socket, string ip, uint16 port, string initial_buffer, out Gst.RTSP.Connection? conn);
+ public Gst.RTSP.Result do_tunnel (Gst.RTSP.Connection? conn2);
public Gst.RTSP.Result flush (bool flush);
public Gst.RTSP.Result free ();
[Version (since = "1.20")]
public bool get_ignore_x_server_reply ();
public unowned string get_ip ();
- public unowned GLib.Socket get_read_socket ();
+ public unowned GLib.Socket? get_read_socket ();
public bool get_remember_session_id ();
[Version (since = "1.2")]
public unowned GLib.TlsConnection get_tls () throws GLib.Error;
[Version (since = "1.4")]
- public GLib.TlsDatabase get_tls_database ();
+ public GLib.TlsDatabase? get_tls_database ();
[Version (since = "1.6")]
- public GLib.TlsInteraction get_tls_interaction ();
+ public GLib.TlsInteraction? get_tls_interaction ();
[Version (since = "1.2.1")]
public GLib.TlsCertificateFlags get_tls_validation_flags ();
- public unowned string get_tunnelid ();
+ public unowned string? get_tunnelid ();
public Gst.RTSP.Url get_url ();
- public unowned GLib.Socket get_write_socket ();
+ public unowned GLib.Socket? get_write_socket ();
public bool is_tunneled ();
[Version (deprecated = true, deprecated_since = "1.18")]
public Gst.RTSP.Result next_timeout (GLib.TimeVal timeout);
[Version (since = "1.18")]
public int64 next_timeout_usec ();
[Version (deprecated = true, deprecated_since = "1.18")]
- public Gst.RTSP.Result poll (Gst.RTSP.Event events, Gst.RTSP.Event revents, GLib.TimeVal timeout);
+ public Gst.RTSP.Result poll (Gst.RTSP.Event events, out Gst.RTSP.Event revents, GLib.TimeVal timeout);
[Version (since = "1.18")]
- public Gst.RTSP.Result poll_usec (Gst.RTSP.Event events, Gst.RTSP.Event revents, int64 timeout);
+ public Gst.RTSP.Result poll_usec (Gst.RTSP.Event events, out Gst.RTSP.Event revents, int64 timeout);
[Version (deprecated = true, deprecated_since = "1.18")]
- public Gst.RTSP.Result read (uint8 data, uint size, GLib.TimeVal timeout);
+ public Gst.RTSP.Result read ([CCode (array_length_cname = "size", array_length_pos = 1.5, array_length_type = "guint")] uint8[] data, GLib.TimeVal timeout);
[Version (since = "1.18")]
- public Gst.RTSP.Result read_usec (uint8 data, uint size, int64 timeout);
+ public Gst.RTSP.Result read_usec ([CCode (array_length_cname = "size", array_length_pos = 1.5, array_length_type = "guint")] uint8[] data, int64 timeout);
[Version (deprecated = true, deprecated_since = "1.18")]
- public Gst.RTSP.Result receive (Gst.RTSP.Message message, GLib.TimeVal timeout);
+ public Gst.RTSP.Result receive (out unowned Gst.RTSP.Message message, GLib.TimeVal timeout);
[Version (since = "1.18")]
- public Gst.RTSP.Result receive_usec (Gst.RTSP.Message message, int64 timeout);
+ public Gst.RTSP.Result receive_usec (out unowned Gst.RTSP.Message message, int64 timeout);
public Gst.RTSP.Result reset_timeout ();
[Version (deprecated = true, deprecated_since = "1.18")]
public Gst.RTSP.Result send (Gst.RTSP.Message message, GLib.TimeVal timeout);
@@ -98,16 +98,16 @@ namespace Gst {
public Gst.RTSP.Result set_qos_dscp (uint qos_dscp);
public void set_remember_session_id (bool remember);
[Version (since = "1.4")]
- public void set_tls_database (GLib.TlsDatabase database);
+ public void set_tls_database (GLib.TlsDatabase? database);
[Version (since = "1.6")]
- public void set_tls_interaction (GLib.TlsInteraction interaction);
+ public void set_tls_interaction (GLib.TlsInteraction? interaction);
[Version (since = "1.2.1")]
public bool set_tls_validation_flags (GLib.TlsCertificateFlags flags);
public void set_tunneled (bool tunneled);
[Version (deprecated = true, deprecated_since = "1.18")]
- public Gst.RTSP.Result write (uint8 data, uint size, GLib.TimeVal timeout);
+ public Gst.RTSP.Result write ([CCode (array_length_cname = "size", array_length_pos = 1.5, array_length_type = "guint")] uint8[] data, GLib.TimeVal timeout);
[Version (since = "1.18")]
- public Gst.RTSP.Result write_usec (uint8 data, uint size, int64 timeout);
+ public Gst.RTSP.Result write_usec ([CCode (array_length_cname = "size", array_length_pos = 1.5, array_length_type = "guint")] uint8[] data, int64 timeout);
}
[CCode (cheader_filename = "gst/rtsp/rtsp.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", lower_case_cprefix = "gst_rtsp_msg_", type_id = "gst_rtsp_msg_get_type ()")]
[Compact]
@@ -137,7 +137,7 @@ namespace Gst {
public Gst.RTSP.Result append_headers (GLib.StringBuilder str);
[CCode (cname = "gst_rtsp_message_copy")]
[Version (since = "1.14")]
- public Gst.RTSP.Result copy (out Gst.RTSP.Message copy);
+ public Gst.RTSP.Result copy (out Gst.RTSP.Message? copy);
[CCode (cname = "gst_rtsp_message_dump")]
public Gst.RTSP.Result dump ();
[CCode (cname = "gst_rtsp_message_free")]
@@ -148,23 +148,15 @@ namespace Gst {
[Version (since = "1.16")]
public Gst.RTSP.Result get_body_buffer (out unowned Gst.Buffer buffer);
[CCode (cname = "gst_rtsp_message_get_header")]
- public Gst.RTSP.Result get_header (Gst.RTSP.HeaderField field, out unowned string value, int indx);
+ public Gst.RTSP.Result get_header (Gst.RTSP.HeaderField field, out unowned string? value, int indx);
[CCode (cname = "gst_rtsp_message_get_header_by_name")]
[Version (since = "1.6")]
- public Gst.RTSP.Result get_header_by_name (string header, out unowned string value, int index);
+ public Gst.RTSP.Result get_header_by_name (string header, out unowned string? value, int index);
[CCode (cname = "gst_rtsp_message_get_type")]
public Gst.RTSP.MsgType get_type ();
[CCode (cname = "gst_rtsp_message_has_body_buffer")]
[Version (since = "1.16")]
public bool has_body_buffer ();
- [CCode (cname = "gst_rtsp_message_init")]
- public Gst.RTSP.Result init ();
- [CCode (cname = "gst_rtsp_message_init_data")]
- public Gst.RTSP.Result init_data (uint8 channel);
- [CCode (cname = "gst_rtsp_message_init_request")]
- public Gst.RTSP.Result init_request (Gst.RTSP.Method method, string uri);
- [CCode (cname = "gst_rtsp_message_init_response")]
- public Gst.RTSP.Result init_response (Gst.RTSP.StatusCode code, string? reason, Gst.RTSP.Message? request);
[CCode (array_length = false, array_null_terminated = true, cname = "gst_rtsp_message_parse_auth_credentials")]
[Version (since = "1.12")]
public Gst.RTSP.AuthCredential[] parse_auth_credentials (Gst.RTSP.HeaderField field);
@@ -222,14 +214,14 @@ namespace Gst {
public string get_request_uri ();
[Version (since = "1.18")]
public string get_request_uri_with_control (string control_path);
- public static Gst.RTSP.Result parse (string urlstr, out Gst.RTSP.Url url);
+ public static Gst.RTSP.Result parse (string urlstr, out Gst.RTSP.Url? url);
public Gst.RTSP.Result set_port (uint16 port);
}
[CCode (cheader_filename = "gst/rtsp/rtsp.h", has_type_id = false)]
[Compact]
[GIR (name = "RTSPWatch")]
public class Watch {
- public uint attach (GLib.MainContext context);
+ public uint attach (GLib.MainContext? context);
[Version (since = "1.2")]
public void get_send_backlog (out size_t bytes, out uint messages);
public void reset ();
@@ -316,16 +308,16 @@ namespace Gst {
public Gst.RTSP.Range client_port;
public Gst.RTSP.Range server_port;
public uint ssrc;
- public string as_text ();
+ public string? as_text ();
public Gst.RTSP.Result free ();
public static Gst.RTSP.Result get_manager (Gst.RTSP.TransMode trans, out unowned string? manager, uint option);
[Version (since = "1.4")]
public Gst.RTSP.Result get_media_type (out unowned string media_type);
[Version (deprecated = true)]
- public static Gst.RTSP.Result get_mime (Gst.RTSP.TransMode trans, string mime);
+ public static Gst.RTSP.Result get_mime (Gst.RTSP.TransMode trans, out unowned string mime);
public Gst.RTSP.Result init ();
- public Gst.RTSP.Result @new ();
- public static Gst.RTSP.Result parse (string str, Gst.RTSP.Transport transport);
+ public static Gst.RTSP.Result @new (out Gst.RTSP.Transport transport);
+ public static Gst.RTSP.Result parse (string str, out Gst.RTSP.Transport transport);
}
[CCode (cheader_filename = "gst/rtsp/rtsp.h", cprefix = "GST_RTSP_AUTH_", type_id = "gst_rtsp_auth_method_get_type ()")]
[GIR (name = "RTSPAuthMethod")]
@@ -471,7 +463,7 @@ namespace Gst {
TEARDOWN,
GET,
POST;
- public unowned string as_text ();
+ public unowned string? as_text ();
}
[CCode (cheader_filename = "gst/rtsp/rtsp.h", cprefix = "GST_RTSP_MESSAGE_", type_id = "gst_rtsp_msg_type_get_type ()")]
[GIR (name = "RTSPMsgType")]
@@ -619,27 +611,35 @@ namespace Gst {
public static void auth_credentials_free (Gst.RTSP.AuthCredential credentials);
[CCode (cheader_filename = "gst/rtsp/rtsp.h")]
[Version (replacement = "RTSPConnection.accept")]
- public static Gst.RTSP.Result connection_accept (GLib.Socket socket, out Gst.RTSP.Connection conn, GLib.Cancellable? cancellable = null);
+ public static Gst.RTSP.Result connection_accept (GLib.Socket socket, out Gst.RTSP.Connection? conn, GLib.Cancellable? cancellable = null);
[CCode (cheader_filename = "gst/rtsp/rtsp.h")]
[Version (replacement = "RTSPConnection.create")]
public static Gst.RTSP.Result connection_create (Gst.RTSP.Url url, out Gst.RTSP.Connection conn);
[CCode (cheader_filename = "gst/rtsp/rtsp.h")]
[Version (replacement = "RTSPConnection.create_from_socket")]
- public static Gst.RTSP.Result connection_create_from_socket (GLib.Socket socket, string ip, uint16 port, string initial_buffer, out Gst.RTSP.Connection conn);
+ public static Gst.RTSP.Result connection_create_from_socket (GLib.Socket socket, string ip, uint16 port, string initial_buffer, out Gst.RTSP.Connection? conn);
[CCode (cheader_filename = "gst/rtsp/rtsp.h")]
public static Gst.RTSP.HeaderField find_header_field (string header);
[CCode (cheader_filename = "gst/rtsp/rtsp.h")]
public static Gst.RTSP.Method find_method (string method);
[CCode (cheader_filename = "gst/rtsp/rtsp.h")]
[Version (since = "1.12")]
- public static string generate_digest_auth_response (string? algorithm, string method, string realm, string username, string password, string uri, string nonce);
+ public static string? generate_digest_auth_response (string? algorithm, string method, string realm, string username, string password, string uri, string nonce);
[CCode (cheader_filename = "gst/rtsp/rtsp.h")]
[Version (since = "1.16")]
- public static string generate_digest_auth_response_from_md5 (string? algorithm, string method, string md5, string uri, string nonce);
+ public static string? generate_digest_auth_response_from_md5 (string? algorithm, string method, string md5, string uri, string nonce);
[CCode (cheader_filename = "gst/rtsp/rtsp.h")]
public static bool header_allow_multiple (Gst.RTSP.HeaderField field);
[CCode (cheader_filename = "gst/rtsp/rtsp.h")]
- public static unowned string header_as_text (Gst.RTSP.HeaderField field);
+ public static unowned string? header_as_text (Gst.RTSP.HeaderField field);
+ [CCode (cheader_filename = "gst/rtsp/rtsp.h")]
+ public static Gst.RTSP.Result message_init (out unowned Gst.RTSP.Message msg);
+ [CCode (cheader_filename = "gst/rtsp/rtsp.h")]
+ public static Gst.RTSP.Result message_init_data (out unowned Gst.RTSP.Message msg, uint8 channel);
+ [CCode (cheader_filename = "gst/rtsp/rtsp.h")]
+ public static Gst.RTSP.Result message_init_request (out unowned Gst.RTSP.Message msg, Gst.RTSP.Method method, string uri);
+ [CCode (cheader_filename = "gst/rtsp/rtsp.h")]
+ public static Gst.RTSP.Result message_init_response (out unowned Gst.RTSP.Message msg, Gst.RTSP.StatusCode code, string? reason, Gst.RTSP.Message? request);
[CCode (cheader_filename = "gst/rtsp/rtsp.h")]
public static Gst.RTSP.Result message_new (out Gst.RTSP.Message msg);
[CCode (cheader_filename = "gst/rtsp/rtsp.h")]
@@ -650,7 +650,7 @@ namespace Gst {
public static Gst.RTSP.Result message_new_response (out Gst.RTSP.Message msg, Gst.RTSP.StatusCode code, string? reason, Gst.RTSP.Message? request);
[CCode (cheader_filename = "gst/rtsp/rtsp.h")]
[Version (replacement = "RTSPMethod.as_text")]
- public static unowned string method_as_text (Gst.RTSP.Method method);
+ public static unowned string? method_as_text (Gst.RTSP.Method method);
[CCode (cheader_filename = "gst/rtsp/rtsp.h")]
public static string options_as_text (Gst.RTSP.Method options);
[CCode (cheader_filename = "gst/rtsp/rtsp.h")]
@@ -680,16 +680,19 @@ namespace Gst {
public static Gst.RTSP.Result transport_get_manager (Gst.RTSP.TransMode trans, out unowned string? manager, uint option);
[CCode (cheader_filename = "gst/rtsp/rtsp.h")]
[Version (deprecated = true, replacement = "RTSPTransport.get_mime")]
- public static Gst.RTSP.Result transport_get_mime (Gst.RTSP.TransMode trans, string mime);
+ public static Gst.RTSP.Result transport_get_mime (Gst.RTSP.TransMode trans, out unowned string mime);
+ [CCode (cheader_filename = "gst/rtsp/rtsp.h")]
+ [Version (replacement = "RTSPTransport.init")]
+ public static Gst.RTSP.Result transport_init (out Gst.RTSP.Transport transport);
[CCode (cheader_filename = "gst/rtsp/rtsp.h")]
[Version (replacement = "RTSPTransport.new")]
- public static Gst.RTSP.Result transport_new (Gst.RTSP.Transport transport);
+ public static Gst.RTSP.Result transport_new (out Gst.RTSP.Transport transport);
[CCode (cheader_filename = "gst/rtsp/rtsp.h")]
[Version (replacement = "RTSPTransport.parse")]
- public static Gst.RTSP.Result transport_parse (string str, Gst.RTSP.Transport transport);
+ public static Gst.RTSP.Result transport_parse (string str, out Gst.RTSP.Transport transport);
[CCode (cheader_filename = "gst/rtsp/rtsp.h")]
[Version (replacement = "RTSPUrl.parse")]
- public static Gst.RTSP.Result url_parse (string urlstr, out Gst.RTSP.Url url);
+ public static Gst.RTSP.Result url_parse (string urlstr, out Gst.RTSP.Url? url);
[CCode (cheader_filename = "gst/rtsp/rtsp.h")]
[Version (replacement = "RTSPVersion.as_text")]
public static unowned string version_as_text (Gst.RTSP.Version version);
diff --git a/vapi/gstreamer-rtsp-server-1.0.vapi b/vapi/gstreamer-rtsp-server-1.0.vapi
index 2bfdd75c2..9702ccaf9 100644
--- a/vapi/gstreamer-rtsp-server-1.0.vapi
+++ b/vapi/gstreamer-rtsp-server-1.0.vapi
@@ -59,7 +59,7 @@ namespace Gst {
public virtual void generate_authenticate_header (Gst.RTSPServer.Context ctx);
public Gst.RTSPServer.Token? get_default_token ();
[Version (since = "1.16")]
- public string get_realm ();
+ public string? get_realm ();
[Version (since = "1.12")]
public Gst.RTSP.AuthMethod get_supported_methods ();
public GLib.TlsAuthenticationMode get_tls_authentication_mode ();
@@ -74,7 +74,7 @@ namespace Gst {
public void remove_digest (string user);
public void set_default_token (Gst.RTSPServer.Token? token);
[Version (since = "1.16")]
- public void set_realm (string realm);
+ public void set_realm (string? realm);
[Version (since = "1.12")]
public void set_supported_methods (Gst.RTSP.AuthMethod methods);
[Version (since = "1.6")]
@@ -91,6 +91,9 @@ namespace Gst {
[CCode (has_construct_function = false)]
public Client ();
[NoWrapper]
+ [Version (since = "1.22")]
+ public virtual Gst.RTSP.StatusCode adjust_error_code (Gst.RTSPServer.Context ctx, Gst.RTSP.StatusCode code);
+ [NoWrapper]
public virtual Gst.RTSP.StatusCode adjust_play_mode (Gst.RTSPServer.Context context, Gst.RTSP.TimeRange range, Gst.SeekFlags flags, double rate, Gst.ClockTime trickmode_interval, bool enable_rate_control);
[NoWrapper]
public virtual Gst.RTSP.StatusCode adjust_play_response (Gst.RTSPServer.Context context);
@@ -220,10 +223,8 @@ namespace Gst {
public Gst.RTSPServer.MediaStatus get_status ();
public unowned Gst.RTSPServer.Stream? get_stream (uint idx);
public Gst.RTSPServer.SuspendMode get_suspend_mode ();
- public Gst.Net.TimeProvider get_time_provider (string? address, uint16 port);
+ public Gst.Net.TimeProvider? get_time_provider (string? address, uint16 port);
public Gst.RTSPServer.TransportMode get_transport_mode ();
- [NoWrapper]
- public virtual bool handle_message (Gst.Message message);
public virtual bool handle_sdp (Gst.SDP.Message sdp);
[Version (since = "1.18")]
public bool has_completed_sender ();
@@ -312,6 +313,8 @@ namespace Gst {
[NoAccessorMethod]
public bool time_provider { get; set; }
public Gst.RTSPServer.TransportMode transport_mode { get; set; }
+ [Version (since = "1.22")]
+ public virtual signal bool handle_message (Gst.Message message);
public virtual signal void new_state (int state);
public virtual signal void new_stream (Gst.RTSPServer.Stream stream);
public virtual signal void prepared ();
@@ -329,9 +332,9 @@ namespace Gst {
public void add_role_from_structure (Gst.Structure structure);
[NoWrapper]
public virtual void configure (Gst.RTSPServer.Media media);
- public virtual Gst.RTSPServer.Media @construct (Gst.RTSP.Url url);
+ public virtual Gst.RTSPServer.Media? @construct (Gst.RTSP.Url url);
[CCode (returns_floating_reference = true)]
- public virtual Gst.Element create_element (Gst.RTSP.Url url);
+ public virtual Gst.Element? create_element (Gst.RTSP.Url url);
[CCode (returns_floating_reference = true)]
[NoWrapper]
public virtual Gst.Pipeline create_pipeline (Gst.RTSPServer.Media media);
@@ -340,7 +343,7 @@ namespace Gst {
public Gst.RTSPServer.AddressPool? get_address_pool ();
public uint get_buffer_size ();
[Version (since = "1.8")]
- public Gst.Clock get_clock ();
+ public Gst.Clock? get_clock ();
[Version (since = "1.16")]
public bool get_do_retransmission ();
[Version (since = "1.18")]
@@ -467,13 +470,13 @@ namespace Gst {
[CCode (has_construct_function = false, type = "GstRTSPMediaFactory*")]
public OnvifMediaFactory ();
public uint get_backchannel_bandwidth ();
- public string get_backchannel_launch ();
+ public string? get_backchannel_launch ();
public virtual bool has_backchannel_support ();
[Version (since = "1.18")]
public bool has_replay_support ();
public static bool requires_backchannel (Gst.RTSPServer.MediaFactory factory, Gst.RTSPServer.Context ctx);
public void set_backchannel_bandwidth (uint bandwidth);
- public void set_backchannel_launch (string launch);
+ public void set_backchannel_launch (string? launch);
[Version (since = "1.18")]
public void set_replay_support (bool has_replay_support);
}
@@ -524,7 +527,7 @@ namespace Gst {
[Version (since = "1.18")]
public uint get_content_length_limit ();
public Gst.RTSPServer.MountPoints? get_mount_points ();
- public string? get_service ();
+ public string get_service ();
public Gst.RTSPServer.SessionPool? get_session_pool ();
public Gst.RTSPServer.ThreadPool? get_thread_pool ();
public static bool io_func (GLib.Socket socket, GLib.IOCondition condition, Gst.RTSPServer.Server server);
@@ -661,11 +664,11 @@ namespace Gst {
public GLib.Socket? get_rtp_multicast_socket (GLib.SocketFamily family);
public GLib.Socket? get_rtp_socket (GLib.SocketFamily family);
public bool get_rtpinfo (out uint rtptime, out uint seq, out uint clock_rate, out Gst.ClockTime running_time);
- public GLib.Object get_rtpsession ();
+ public GLib.Object? get_rtpsession ();
public void get_server_port (out Gst.RTSP.Range server_port, GLib.SocketFamily family);
public Gst.Pad? get_sinkpad ();
public Gst.Pad? get_srcpad ();
- public Gst.Element get_srtp_encoder ();
+ public Gst.Element? get_srtp_encoder ();
public void get_ssrc (out uint ssrc);
public bool get_ulpfec_enabled ();
[Version (since = "1.16")]
@@ -854,6 +857,9 @@ namespace Gst {
public void pop_current ();
[CCode (cname = "gst_rtsp_context_push_current")]
public void push_current ();
+ [CCode (cname = "gst_rtsp_context_set_token")]
+ [Version (since = "1.22")]
+ public void set_token (Gst.RTSPServer.Token token);
}
[CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "GstSDPInfo", has_type_id = false)]
[GIR (name = "SDPInfo")]
diff --git a/vapi/gstreamer-sdp-1.0.vapi b/vapi/gstreamer-sdp-1.0.vapi
index fec85b8b5..d9fa85e1f 100644
--- a/vapi/gstreamer-sdp-1.0.vapi
+++ b/vapi/gstreamer-sdp-1.0.vapi
@@ -45,7 +45,7 @@ namespace Gst {
[Version (since = "1.8")]
public string base64_encode ();
[Version (since = "1.4")]
- public unowned Gst.SDP.MIKEYPayload find_payload (Gst.SDP.MIKEYPayloadType type, uint nth);
+ public unowned Gst.SDP.MIKEYPayload? find_payload (Gst.SDP.MIKEYPayloadType type, uint nth);
[CCode (has_construct_function = false)]
[Version (since = "1.4")]
public MIKEYMessage.from_bytes (GLib.Bytes bytes, Gst.SDP.MIKEYDecryptInfo info) throws GLib.Error;
@@ -62,7 +62,7 @@ namespace Gst {
[Version (since = "1.4")]
public uint get_n_payloads ();
[Version (since = "1.4")]
- public unowned Gst.SDP.MIKEYPayload get_payload (uint idx);
+ public unowned Gst.SDP.MIKEYPayload? get_payload (uint idx);
[Version (since = "1.4")]
public bool insert_cs_srtp (int idx, Gst.SDP.MIKEYMapSRTP map);
[Version (since = "1.4")]
@@ -96,13 +96,13 @@ namespace Gst {
[Version (since = "1.4")]
public uint kemac_get_n_sub ();
[Version (since = "1.4")]
- public unowned Gst.SDP.MIKEYPayload kemac_get_sub (uint idx);
+ public unowned Gst.SDP.MIKEYPayload? kemac_get_sub (uint idx);
[Version (since = "1.4")]
public bool kemac_remove_sub (uint idx);
[Version (since = "1.4")]
public bool kemac_set (Gst.SDP.MIKEYEncAlg enc_alg, Gst.SDP.MIKEYMacAlg mac_alg);
[Version (since = "1.4")]
- public bool key_data_set_interval (uint8 vf_len, [CCode (array_length_cname = "vt_len", array_length_pos = 1.66667, array_length_type = "guint8")] uint8[] vt_data);
+ public bool key_data_set_interval ([CCode (array_length_cname = "vf_len", array_length_pos = 0.5, array_length_type = "guint8")] uint8[] vf_data, [CCode (array_length_cname = "vt_len", array_length_pos = 1.5, array_length_type = "guint8")] uint8[] vt_data);
[Version (since = "1.4")]
public bool key_data_set_key (Gst.SDP.MIKEYKeyDataType key_type, [CCode (array_length_cname = "key_len", array_length_pos = 1.5, array_length_type = "guint16")] uint8[] key_data);
[Version (since = "1.4")]
@@ -216,8 +216,8 @@ namespace Gst {
public uint emails_len ();
public Gst.SDP.Result free ();
public unowned Gst.SDP.Attribute? get_attribute (uint idx);
- public unowned string get_attribute_val (string key);
- public unowned string get_attribute_val_n (string key, uint nth);
+ public unowned string? get_attribute_val (string key);
+ public unowned string? get_attribute_val_n (string key, uint nth);
public unowned Gst.SDP.Bandwidth? get_bandwidth (uint idx);
public unowned Gst.SDP.Connection? get_connection ();
public unowned string get_email (uint idx);
@@ -369,11 +369,11 @@ namespace Gst {
public uint formats_len ();
public Gst.SDP.Result free ();
public unowned Gst.SDP.Attribute? get_attribute (uint idx);
- public unowned string get_attribute_val (string key);
- public unowned string get_attribute_val_n (string key, uint nth);
+ public unowned string? get_attribute_val (string key);
+ public unowned string? get_attribute_val_n (string key, uint nth);
public unowned Gst.SDP.Bandwidth? get_bandwidth (uint idx);
[Version (since = "1.8")]
- public Gst.Caps get_caps_from_media (int pt);
+ public Gst.Caps? get_caps_from_media (int pt);
public unowned Gst.SDP.Connection? get_connection (uint idx);
public unowned string get_format (uint idx);
public unowned string get_information ();
@@ -414,7 +414,7 @@ namespace Gst {
public Gst.SDP.Result set_key (string type, string data);
public Gst.SDP.Result set_media (string med);
[Version (since = "1.8")]
- public static Gst.SDP.Result set_media_from_caps (Gst.Caps caps, Gst.SDP.Media media);
+ public static Gst.SDP.Result set_media_from_caps (Gst.Caps caps, out Gst.SDP.Media media);
public Gst.SDP.Result set_port_info (uint port, uint num_ports);
public Gst.SDP.Result set_proto (string proto);
public Gst.SDP.Result uninit ();
@@ -584,15 +584,21 @@ namespace Gst {
[Version (since = "1.8")]
public static string make_keymgmt (string uri, string base64);
[CCode (cheader_filename = "gst/sdp/sdp.h")]
+ [Version (replacement = "SDPMedia.init")]
+ public static Gst.SDP.Result media_init (out Gst.SDP.Media media);
+ [CCode (cheader_filename = "gst/sdp/sdp.h")]
[Version (replacement = "SDPMedia.new")]
public static Gst.SDP.Result media_new (out Gst.SDP.Media media);
[CCode (cheader_filename = "gst/sdp/sdp.h")]
[Version (replacement = "SDPMedia.set_media_from_caps", since = "1.8")]
- public static Gst.SDP.Result media_set_media_from_caps (Gst.Caps caps, Gst.SDP.Media media);
+ public static Gst.SDP.Result media_set_media_from_caps (Gst.Caps caps, out Gst.SDP.Media media);
[CCode (cheader_filename = "gst/sdp/sdp.h")]
[Version (replacement = "SDPMessage.as_uri")]
public static string message_as_uri (string scheme, Gst.SDP.Message msg);
[CCode (cheader_filename = "gst/sdp/sdp.h")]
+ [Version (replacement = "SDPMessage.init")]
+ public static Gst.SDP.Result message_init (out unowned Gst.SDP.Message msg);
+ [CCode (cheader_filename = "gst/sdp/sdp.h")]
[Version (replacement = "SDPMessage.new")]
public static Gst.SDP.Result message_new (out Gst.SDP.Message msg);
[CCode (cheader_filename = "gst/sdp/sdp.h")]
diff --git a/vapi/gstreamer-tag-1.0.vapi b/vapi/gstreamer-tag-1.0.vapi
index 1ef26138b..643399cfe 100644
--- a/vapi/gstreamer-tag-1.0.vapi
+++ b/vapi/gstreamer-tag-1.0.vapi
@@ -76,15 +76,15 @@ namespace Gst {
[CCode (cheader_filename = "gst/tag/tag.h")]
public static Gst.TagList from_exif_buffer_with_tiff_header (Gst.Buffer buffer);
[CCode (cheader_filename = "gst/tag/tag.h")]
- public static Gst.TagList from_id3v2_tag (Gst.Buffer buffer);
+ public static Gst.TagList? from_id3v2_tag (Gst.Buffer buffer);
[CCode (cheader_filename = "gst/tag/tag.h")]
- public static Gst.TagList from_vorbiscomment ([CCode (array_length_cname = "size", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] data, [CCode (array_length_cname = "id_data_length", array_length_pos = 2.5, array_length_type = "guint")] uint8[] id_data, out string vendor_string);
+ public static Gst.TagList? from_vorbiscomment ([CCode (array_length_cname = "size", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] data, [CCode (array_length_cname = "id_data_length", array_length_pos = 2.5, array_length_type = "guint")] uint8[] id_data, out string vendor_string);
[CCode (cheader_filename = "gst/tag/tag.h")]
- public static Gst.TagList from_vorbiscomment_buffer (Gst.Buffer buffer, [CCode (array_length_cname = "id_data_length", array_length_pos = 2.5, array_length_type = "guint")] uint8[] id_data, out string vendor_string);
+ public static Gst.TagList? from_vorbiscomment_buffer (Gst.Buffer buffer, [CCode (array_length_cname = "id_data_length", array_length_pos = 2.5, array_length_type = "guint")] uint8[] id_data, out string vendor_string);
[CCode (cheader_filename = "gst/tag/tag.h")]
- public static Gst.TagList from_xmp_buffer (Gst.Buffer buffer);
+ public static Gst.TagList? from_xmp_buffer (Gst.Buffer buffer);
[CCode (cheader_filename = "gst/tag/tag.h")]
- public static Gst.TagList new_from_id3v1 ([CCode (array_length = false)] uint8 data[128]);
+ public static Gst.TagList? new_from_id3v1 ([CCode (array_length = false)] uint8 data[128]);
[CCode (cheader_filename = "gst/tag/tag.h")]
public static Gst.Buffer to_exif_buffer (Gst.TagList taglist, int byte_order, uint32 base_offset);
[CCode (cheader_filename = "gst/tag/tag.h")]
@@ -92,7 +92,7 @@ namespace Gst {
[CCode (cheader_filename = "gst/tag/tag.h")]
public static Gst.Buffer to_vorbiscomment_buffer (Gst.TagList list, [CCode (array_length_cname = "id_data_length", array_length_pos = 2.5, array_length_type = "guint")] uint8[] id_data, string? vendor_string);
[CCode (cheader_filename = "gst/tag/tag.h")]
- public static Gst.Buffer to_xmp_buffer (Gst.TagList list, bool read_only, [CCode (array_length = false, array_null_terminated = true)] string[] schemas);
+ public static Gst.Buffer? to_xmp_buffer (Gst.TagList list, bool read_only, [CCode (array_length = false, array_null_terminated = true)] string[] schemas);
}
namespace MusicBrainz {
[CCode (cheader_filename = "gst/tag/tag.h", cname = "GST_TAG_MUSICBRAINZ_ALBUMARTISTID")]
@@ -208,55 +208,55 @@ namespace Gst {
[CCode (cheader_filename = "gst/tag/tag.h")]
public static bool check_language_code (string lang_code);
[CCode (cheader_filename = "gst/tag/tag.h")]
- public static string freeform_string_to_utf8 ([CCode (array_length_cname = "size", array_length_pos = 1.5)] char[] data, [CCode (array_length = false, array_null_terminated = true)] string[] env_vars);
+ public static string? freeform_string_to_utf8 ([CCode (array_length_cname = "size", array_length_pos = 1.5)] char[] data, [CCode (array_length = false, array_null_terminated = true)] string[] env_vars);
[CCode (cheader_filename = "gst/tag/tag.h")]
- public static unowned string from_id3_tag (string id3_tag);
+ public static unowned string? from_id3_tag (string id3_tag);
[CCode (cheader_filename = "gst/tag/tag.h")]
- public static unowned string from_id3_user_tag (string type, string id3_user_tag);
+ public static unowned string? from_id3_user_tag (string type, string id3_user_tag);
[CCode (cheader_filename = "gst/tag/tag.h")]
- public static unowned string from_vorbis_tag (string vorbis_tag);
+ public static unowned string? from_vorbis_tag (string vorbis_tag);
[CCode (cheader_filename = "gst/tag/tag.h")]
public static uint get_id3v2_tag_size (Gst.Buffer buffer);
[CCode (cheader_filename = "gst/tag/tag.h")]
- public static unowned string get_language_code_iso_639_1 (string lang_code);
+ public static unowned string? get_language_code_iso_639_1 (string lang_code);
[CCode (cheader_filename = "gst/tag/tag.h")]
- public static unowned string get_language_code_iso_639_2B (string lang_code);
+ public static unowned string? get_language_code_iso_639_2B (string lang_code);
[CCode (cheader_filename = "gst/tag/tag.h")]
- public static unowned string get_language_code_iso_639_2T (string lang_code);
+ public static unowned string? get_language_code_iso_639_2T (string lang_code);
[CCode (array_length = false, array_null_terminated = true, cheader_filename = "gst/tag/tag.h")]
public static string[] get_language_codes ();
[CCode (cheader_filename = "gst/tag/tag.h")]
- public static unowned string get_language_name (string language_code);
+ public static unowned string? get_language_name (string language_code);
[CCode (cheader_filename = "gst/tag/tag.h")]
- public static unowned string get_license_description (string license_ref);
+ public static unowned string? get_license_description (string license_ref);
[CCode (cheader_filename = "gst/tag/tag.h")]
public static Gst.Tag.LicenseFlags get_license_flags (string license_ref);
[CCode (cheader_filename = "gst/tag/tag.h")]
- public static unowned string get_license_jurisdiction (string license_ref);
+ public static unowned string? get_license_jurisdiction (string license_ref);
[CCode (cheader_filename = "gst/tag/tag.h")]
- public static unowned string get_license_nick (string license_ref);
+ public static unowned string? get_license_nick (string license_ref);
[CCode (cheader_filename = "gst/tag/tag.h")]
- public static unowned string get_license_title (string license_ref);
+ public static unowned string? get_license_title (string license_ref);
[CCode (cheader_filename = "gst/tag/tag.h")]
- public static unowned string get_license_version (string license_ref);
+ public static unowned string? get_license_version (string license_ref);
[CCode (array_length = false, array_null_terminated = true, cheader_filename = "gst/tag/tag.h")]
public static string[] get_licenses ();
[CCode (cheader_filename = "gst/tag/tag.h")]
public static uint id3_genre_count ();
[CCode (cheader_filename = "gst/tag/tag.h")]
- public static unowned string id3_genre_get (uint id);
+ public static unowned string? id3_genre_get (uint id);
[CCode (cheader_filename = "gst/tag/tag.h")]
- public static Gst.Sample image_data_to_image_sample ([CCode (array_length_cname = "image_data_len", array_length_pos = 1.5, array_length_type = "guint")] uint8[] image_data, Gst.Tag.ImageType image_type);
+ public static Gst.Sample? image_data_to_image_sample ([CCode (array_length_cname = "image_data_len", array_length_pos = 1.5, array_length_type = "guint")] uint8[] image_data, Gst.Tag.ImageType image_type);
[CCode (cheader_filename = "gst/tag/tag.h")]
public static bool parse_extended_comment (string ext_comment, out string? key, out string? lang, out string value, bool fail_if_no_key);
[CCode (cheader_filename = "gst/tag/tag.h")]
public static void register_musicbrainz_tags ();
[CCode (cheader_filename = "gst/tag/tag.h")]
- public static unowned string to_id3_tag (string gst_tag);
+ public static unowned string? to_id3_tag (string gst_tag);
[CCode (cheader_filename = "gst/tag/tag.h")]
public static GLib.List<string> to_vorbis_comments (Gst.TagList list, string tag);
[CCode (cheader_filename = "gst/tag/tag.h")]
- public static unowned string to_vorbis_tag (string gst_tag);
+ public static unowned string? to_vorbis_tag (string gst_tag);
[CCode (cheader_filename = "gst/tag/tag.h", cname = "gst_vorbis_tag_add")]
public static void vorbis_tag_add (Gst.TagList list, string tag, string value);
[CCode (array_length = false, array_null_terminated = true, cheader_filename = "gst/tag/tag.h")]
diff --git a/vapi/gstreamer-video-1.0.vapi b/vapi/gstreamer-video-1.0.vapi
index 49fc55bd8..af7798aec 100644
--- a/vapi/gstreamer-video-1.0.vapi
+++ b/vapi/gstreamer-video-1.0.vapi
@@ -20,6 +20,9 @@ namespace Gst {
public Gst.TaskPool get_execution_task_pool ();
[NoWrapper]
public virtual Gst.Caps update_caps (Gst.Caps caps);
+ [NoAccessorMethod]
+ [Version (since = "1.22")]
+ public bool force_live { get; construct; }
}
[CCode (cheader_filename = "gst/video/video.h", type_id = "gst_video_aggregator_convert_pad_get_type ()")]
[GIR (name = "VideoAggregatorConvertPad")]
@@ -142,6 +145,10 @@ namespace Gst {
[Version (since = "1.6")]
public void free ();
public unowned Gst.Structure get_config ();
+ [Version (since = "1.22")]
+ public unowned Gst.Video.Info get_in_info ();
+ [Version (since = "1.22")]
+ public unowned Gst.Video.Info get_out_info ();
[Version (since = "1.6")]
public bool set_config (owned Gst.Structure config);
}
@@ -151,7 +158,7 @@ namespace Gst {
[CCode (has_construct_function = false)]
protected Decoder ();
public void add_to_frame (int n_bytes);
- public Gst.Buffer allocate_output_buffer ();
+ public Gst.Buffer? allocate_output_buffer ();
public Gst.FlowReturn allocate_output_frame (Gst.Video.CodecFrame frame);
[Version (since = "1.12")]
public Gst.FlowReturn allocate_output_frame_with_params (Gst.Video.CodecFrame frame, Gst.BufferPoolAcquireParams @params);
@@ -171,10 +178,10 @@ namespace Gst {
public Gst.FlowReturn finish_subframe (owned Gst.Video.CodecFrame frame);
[NoWrapper]
public virtual bool flush ();
- public void get_allocator (out Gst.Allocator allocator, out Gst.AllocationParams @params);
- public Gst.BufferPool get_buffer_pool ();
+ public void get_allocator (out Gst.Allocator? allocator, out Gst.AllocationParams @params);
+ public Gst.BufferPool? get_buffer_pool ();
public int get_estimate_rate ();
- public Gst.Video.CodecFrame get_frame (int frame_number);
+ public Gst.Video.CodecFrame? get_frame (int frame_number);
public GLib.List<Gst.Video.CodecFrame> get_frames ();
[Version (since = "1.20")]
public uint get_input_subframe_index (Gst.Video.CodecFrame frame);
@@ -185,8 +192,8 @@ namespace Gst {
public bool get_needs_format ();
[Version (since = "1.20")]
public bool get_needs_sync_point ();
- public Gst.Video.CodecFrame get_oldest_frame ();
- public Gst.Video.CodecState get_output_state ();
+ public Gst.Video.CodecFrame? get_oldest_frame ();
+ public Gst.Video.CodecState? get_output_state ();
public bool get_packetized ();
[Version (since = "1.4")]
public size_t get_pending_frame_size ();
@@ -226,14 +233,14 @@ namespace Gst {
[NoWrapper]
public virtual bool set_format (Gst.Video.CodecState state);
[Version (since = "1.16.")]
- public Gst.Video.CodecState set_interlaced_output_state (Gst.Video.Format fmt, Gst.Video.InterlaceMode interlace_mode, uint width, uint height, Gst.Video.CodecState? reference);
+ public Gst.Video.CodecState? set_interlaced_output_state (Gst.Video.Format fmt, Gst.Video.InterlaceMode interlace_mode, uint width, uint height, Gst.Video.CodecState? reference);
public void set_latency (Gst.ClockTime min_latency, Gst.ClockTime max_latency);
public void set_max_errors (int num);
[Version (since = "1.4")]
public void set_needs_format (bool enabled);
[Version (since = "1.20")]
public void set_needs_sync_point (bool enabled);
- public Gst.Video.CodecState set_output_state (Gst.Video.Format fmt, uint width, uint height, Gst.Video.CodecState? reference);
+ public Gst.Video.CodecState? set_output_state (Gst.Video.Format fmt, uint width, uint height, Gst.Video.CodecState? reference);
public void set_packetized (bool packetized);
[Version (since = "1.20")]
public void set_subframe_mode (bool subframe_mode);
@@ -296,16 +303,16 @@ namespace Gst {
public Gst.FlowReturn finish_subframe (Gst.Video.CodecFrame frame);
[NoWrapper]
public virtual bool flush ();
- public void get_allocator (out Gst.Allocator allocator, out Gst.AllocationParams @params);
- public Gst.Video.CodecFrame get_frame (int frame_number);
+ public void get_allocator (out Gst.Allocator? allocator, out Gst.AllocationParams @params);
+ public Gst.Video.CodecFrame? get_frame (int frame_number);
public GLib.List<Gst.Video.CodecFrame> get_frames ();
public void get_latency (out Gst.ClockTime min_latency, out Gst.ClockTime max_latency);
[Version (since = "1.14")]
public Gst.ClockTimeDiff get_max_encode_time (Gst.Video.CodecFrame frame);
[Version (since = "1.18")]
public Gst.ClockTime get_min_force_key_unit_interval ();
- public Gst.Video.CodecFrame get_oldest_frame ();
- public Gst.Video.CodecState get_output_state ();
+ public Gst.Video.CodecFrame? get_oldest_frame ();
+ public Gst.Video.CodecState? get_output_state ();
[NoWrapper]
public virtual Gst.Caps getcaps (Gst.Caps filter);
[NoWrapper]
@@ -331,7 +338,7 @@ namespace Gst {
public void set_min_force_key_unit_interval (Gst.ClockTime interval);
[Version (since = "1.6")]
public void set_min_pts (Gst.ClockTime min_pts);
- public Gst.Video.CodecState set_output_state (owned Gst.Caps caps, Gst.Video.CodecState? reference);
+ public Gst.Video.CodecState? set_output_state (owned Gst.Caps caps, Gst.Video.CodecState? reference);
[Version (since = "1.14")]
public void set_qos_enabled (bool enabled);
[NoWrapper]
@@ -432,7 +439,7 @@ namespace Gst {
public void add_rectangle (Gst.Video.OverlayRectangle rectangle);
public bool blend (Gst.Video.Frame video_buf);
public Gst.Video.OverlayComposition copy ();
- public unowned Gst.Video.OverlayRectangle get_rectangle (uint n);
+ public unowned Gst.Video.OverlayRectangle? get_rectangle (uint n);
public uint get_seqnum ();
[DestroysInstance]
[ReturnsModifiedPointer]
@@ -847,12 +854,13 @@ namespace Gst {
public Gst.Video.TileMode tile_mode;
public uint tile_ws;
public uint tile_hs;
+ [CCode (array_length = false)]
+ [Version (since = "1.22")]
+ public weak Gst.Video.TileInfo tile_info[4];
[Version (since = "1.18")]
public void component (uint plane, out int components);
[Version (since = "1.22")]
public int extrapolate_stride (int plane, int stride);
- [Version (since = "1.22")]
- public uint get_tile_sizes (uint plane, uint? out_ws, uint? out_hs);
}
[CCode (cheader_filename = "gst/video/video.h", has_type_id = false)]
[GIR (name = "VideoFrame")]
@@ -1003,6 +1011,15 @@ namespace Gst {
public static unowned Gst.MetaInfo? get_info ();
}
[CCode (cheader_filename = "gst/video/video.h", has_type_id = false)]
+ [GIR (name = "VideoTileInfo")]
+ [Version (since = "1.22")]
+ public struct TileInfo {
+ public uint width;
+ public uint height;
+ public uint stride;
+ public uint size;
+ }
+ [CCode (cheader_filename = "gst/video/video.h", has_type_id = false)]
[GIR (name = "VideoTimeCodeConfig")]
[Version (since = "1.10")]
public struct TimeCodeConfig {
@@ -1534,7 +1551,7 @@ namespace Gst {
[Version (since = "1.6")]
public static Gst.Video.MultiviewMode from_caps_string (string caps_mview_mode);
[Version (since = "1.6")]
- public unowned string to_caps_string ();
+ public unowned string? to_caps_string ();
}
[CCode (cheader_filename = "gst/video/video.h", cname = "GstNavigationCommand", cprefix = "GST_NAVIGATION_COMMAND_", type_id = "gst_navigation_command_get_type ()")]
[GIR (name = "NavigationCommand")]
@@ -1596,7 +1613,11 @@ namespace Gst {
SHIFT_MASK,
LOCK_MASK,
CONTROL_MASK,
- ALT_MASK,
+ MOD1_MASK,
+ MOD2_MASK,
+ MOD3_MASK,
+ MOD4_MASK,
+ MOD5_MASK,
BUTTON1_MASK,
BUTTON2_MASK,
BUTTON3_MASK,
@@ -2162,7 +2183,7 @@ namespace Gst {
public static Gst.Video.MultiviewMode multiview_mode_from_caps_string (string caps_mview_mode);
[CCode (cheader_filename = "gst/video/video.h")]
[Version (replacement = "VideoMultiviewMode.to_caps_string", since = "1.6")]
- public static unowned string multiview_mode_to_caps_string (Gst.Video.MultiviewMode mview_mode);
+ public static unowned string? multiview_mode_to_caps_string (Gst.Video.MultiviewMode mview_mode);
[CCode (cheader_filename = "gst/video/video.h")]
[Version (since = "1.6")]
public static void multiview_video_info_change_mode (Gst.Video.Info info, Gst.Video.MultiviewMode out_mview_mode, Gst.Video.MultiviewFlags out_mview_flags);
diff --git a/vapi/gstreamer-webrtc-1.0.vapi b/vapi/gstreamer-webrtc-1.0.vapi
index 0686e792a..4f030c5ec 100644
--- a/vapi/gstreamer-webrtc-1.0.vapi
+++ b/vapi/gstreamer-webrtc-1.0.vapi
@@ -24,6 +24,10 @@ namespace Gst {
public abstract class WebRTCDataChannel : GLib.Object {
[CCode (has_construct_function = false)]
protected WebRTCDataChannel ();
+ [Version (since = "1.22")]
+ public bool send_data_full (GLib.Bytes? data) throws GLib.Error;
+ [Version (since = "1.22")]
+ public bool send_string_full (string? str) throws GLib.Error;
[NoAccessorMethod]
public uint64 buffered_amount { get; }
[NoAccessorMethod]
@@ -60,51 +64,37 @@ namespace Gst {
public signal void send_string (string? str);
}
[CCode (cheader_filename = "gst/webrtc/webrtc.h", lower_case_csuffix = "webrtc_ice", type_id = "gst_webrtc_ice_get_type ()")]
+ [Version (since = "1.22")]
public abstract class WebRTCICE : Gst.Object {
+ [CCode (array_length = false)]
+ public weak void* _gst_reserved[4];
public Gst.WebRTCICEConnectionState ice_connection_state;
public Gst.WebRTCICEGatheringState ice_gathering_state;
[CCode (has_construct_function = false)]
protected WebRTCICE ();
- [Version (since = "1.22")]
public virtual void add_candidate (Gst.WebRTCICEStream stream, string candidate);
- [Version (since = "1.22")]
public virtual Gst.WebRTCICEStream? add_stream (uint session_id);
- [Version (since = "1.22")]
public virtual bool add_turn_server (string uri);
- [Version (since = "1.22")]
- public static void candidate_stats_free (Gst.WebRTCICECandidateStats stats);
- [Version (since = "1.22")]
public virtual Gst.WebRTCICETransport? find_transport (Gst.WebRTCICEStream stream, Gst.WebRTCICEComponent component);
- [Version (since = "1.22")]
public virtual bool gather_candidates (Gst.WebRTCICEStream stream);
- [Version (since = "1.22")]
+ public virtual string get_http_proxy ();
public virtual bool get_is_controller ();
- [Version (since = "1.22")]
- public virtual GLib.Array<Gst.WebRTCICECandidateStats?> get_local_candidates (Gst.WebRTCICEStream stream);
- [Version (since = "1.22")]
- public virtual GLib.Array<Gst.WebRTCICECandidateStats?> get_remote_candidates (Gst.WebRTCICEStream stream);
- [Version (since = "1.22")]
- public virtual bool get_selected_pair (Gst.WebRTCICEStream stream, Gst.WebRTCICECandidateStats local_stats, Gst.WebRTCICECandidateStats remote_stats);
- [Version (since = "1.22")]
- public virtual string get_stun_server ();
- [Version (since = "1.22")]
- public virtual string get_turn_server ();
- [Version (since = "1.22")]
+ [NoWrapper]
+ public virtual Gst.WebRTCICECandidateStats get_local_candidates (Gst.WebRTCICEStream stream);
+ [NoWrapper]
+ public virtual Gst.WebRTCICECandidateStats get_remote_candidates (Gst.WebRTCICEStream stream);
+ public virtual bool get_selected_pair (Gst.WebRTCICEStream stream, out Gst.WebRTCICECandidateStats local_stats, out Gst.WebRTCICECandidateStats remote_stats);
+ public virtual string? get_stun_server ();
+ public virtual string? get_turn_server ();
public virtual void set_force_relay (bool force_relay);
- [Version (since = "1.22")]
+ public virtual void set_http_proxy (string uri);
public virtual void set_is_controller (bool controller);
- [Version (since = "1.22")]
public virtual bool set_local_credentials (Gst.WebRTCICEStream stream, string ufrag, string pwd);
- [Version (since = "1.22")]
public virtual void set_on_ice_candidate (owned Gst.WebRTCICEOnCandidateFunc func);
- [Version (since = "1.22")]
public virtual bool set_remote_credentials (Gst.WebRTCICEStream stream, string ufrag, string pwd);
- [Version (since = "1.22")]
- public virtual void set_stun_server (string uri);
- [Version (since = "1.22")]
+ public virtual void set_stun_server (string? uri);
public virtual void set_tos (Gst.WebRTCICEStream stream, uint tos);
- [Version (since = "1.22")]
- public virtual void set_turn_server (string uri);
+ public virtual void set_turn_server (string? uri);
[NoAccessorMethod]
[Version (since = "1.20")]
public uint max_rtp_port { get; set construct; }
@@ -113,13 +103,29 @@ namespace Gst {
public uint min_rtp_port { get; set construct; }
public signal bool add_local_ip_address (string address);
}
+ [CCode (cheader_filename = "gst/webrtc/webrtc.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", lower_case_csuffix = "webrtc_ice_candidate_stats", type_id = "gst_webrtc_ice_candidate_stats_get_type ()")]
+ [Compact]
+ [Version (since = "1.22")]
+ public class WebRTCICECandidateStats {
+ [CCode (array_length = false)]
+ public weak void* _gst_reserved[20];
+ public weak string ipaddr;
+ public uint port;
+ public uint prio;
+ public weak string proto;
+ public weak string relay_proto;
+ public uint stream_id;
+ public weak string type;
+ public weak string url;
+ public Gst.WebRTCICECandidateStats copy ();
+ public void free ();
+ }
[CCode (cheader_filename = "gst/webrtc/webrtc.h", lower_case_csuffix = "webrtc_ice_stream", type_id = "gst_webrtc_ice_stream_get_type ()")]
+ [Version (since = "1.22")]
public abstract class WebRTCICEStream : Gst.Object {
[CCode (has_construct_function = false)]
protected WebRTCICEStream ();
- [Version (since = "1.22")]
public virtual Gst.WebRTCICETransport? find_transport (Gst.WebRTCICEComponent component);
- [Version (since = "1.22")]
public virtual bool gather_candidates ();
[NoAccessorMethod]
public uint stream_id { get; construct; }
@@ -219,17 +225,6 @@ namespace Gst {
[DestroysInstance]
public void free ();
}
- [CCode (cheader_filename = "gst/webrtc/webrtc.h", has_type_id = false)]
- public struct WebRTCICECandidateStats {
- public weak string ipaddr;
- public uint port;
- public uint stream_id;
- public weak string type;
- public weak string proto;
- public weak string relay_proto;
- public uint prio;
- public weak string url;
- }
[CCode (cheader_filename = "gst/webrtc/webrtc.h", cprefix = "GST_WEBRTC_BUNDLE_POLICY_", type_id = "gst_webrtc_bundle_policy_get_type ()")]
[Version (since = "1.16")]
public enum WebRTCBundlePolicy {
@@ -387,7 +382,9 @@ namespace Gst {
INVALID_STATE,
INTERNAL_FAILURE,
[Version (since = "1.22")]
- INVALID_MODIFICATION;
+ INVALID_MODIFICATION,
+ [Version (since = "1.22")]
+ TYPE_ERROR;
[CCode (cname = "gst_webrtc_error_quark")]
public static GLib.Quark quark ();
}