summaryrefslogtreecommitdiff
path: root/sources/generated/Gst/Event.cs
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@igalia.com>2020-06-17 14:36:28 -0400
committerThibault Saunier <tsaunier@igalia.com>2020-06-17 21:16:40 -0400
commitc70e5494b32d144f4f6a6ab0ef8b6ad3e09ce98e (patch)
tree991c875537e2799acd64914592f9a829e12fdb0d /sources/generated/Gst/Event.cs
parenta088475b9d22c6c6ce7b7dee24262dd8aab48342 (diff)
Update GStreamer
Diffstat (limited to 'sources/generated/Gst/Event.cs')
-rw-r--r--sources/generated/Gst/Event.cs88
1 files changed, 88 insertions, 0 deletions
diff --git a/sources/generated/Gst/Event.cs b/sources/generated/Gst/Event.cs
index 9cce178..dad280d 100644
--- a/sources/generated/Gst/Event.cs
+++ b/sources/generated/Gst/Event.cs
@@ -118,6 +118,15 @@ namespace Gst {
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool gst_event_has_name_id(IntPtr raw, uint name);
+
+ public bool HasNameId(uint name) {
+ bool raw_ret = gst_event_has_name_id(Handle, name);
+ bool ret = raw_ret;
+ return ret;
+ }
+
+ [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_event_parse_buffer_size(IntPtr raw, out int format, out long minsize, out long maxsize, out bool async);
public void ParseBufferSize(out Gst.Format format, out long minsize, out long maxsize, out bool async) {
@@ -163,6 +172,22 @@ namespace Gst {
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
+ static extern void gst_event_parse_instant_rate_change(IntPtr raw, out double rate_multiplier, out int new_flags);
+
+ public void ParseInstantRateChange(out double rate_multiplier, out Gst.SegmentFlags new_flags) {
+ int native_new_flags;
+ gst_event_parse_instant_rate_change(Handle, out rate_multiplier, out native_new_flags);
+ new_flags = (Gst.SegmentFlags) native_new_flags;
+ }
+
+ [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
+ static extern void gst_event_parse_instant_rate_sync_time(IntPtr raw, out double rate_multiplier, out ulong running_time, out ulong upstream_running_time);
+
+ public void ParseInstantRateSyncTime(out double rate_multiplier, out ulong running_time, out ulong upstream_running_time) {
+ gst_event_parse_instant_rate_sync_time(Handle, out rate_multiplier, out running_time, out upstream_running_time);
+ }
+
+ [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_event_parse_latency(IntPtr raw, out ulong latency);
public ulong ParseLatency() {
@@ -466,6 +491,24 @@ namespace Gst {
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr gst_event_new_instant_rate_change(double rate_multiplier, int new_flags);
+
+ public static Event NewInstantRateChange(double rate_multiplier, Gst.SegmentFlags new_flags)
+ {
+ Event result = new Event (gst_event_new_instant_rate_change(rate_multiplier, (int) new_flags));
+ return result;
+ }
+
+ [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr gst_event_new_instant_rate_sync_time(double rate_multiplier, ulong running_time, ulong upstream_running_time);
+
+ public static Event NewInstantRateSyncTime(double rate_multiplier, ulong running_time, ulong upstream_running_time)
+ {
+ Event result = new Event (gst_event_new_instant_rate_sync_time(rate_multiplier, running_time, upstream_running_time));
+ return result;
+ }
+
+ [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_event_new_latency(ulong latency);
public static Event NewLatency(ulong latency)
@@ -634,6 +677,51 @@ namespace Gst {
return result;
}
+ [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr gst_event_ref(IntPtr raw);
+
+ protected override void Ref (IntPtr raw)
+ {
+ if (!Owned) {
+ gst_event_ref (raw);
+ Owned = true;
+ }
+ }
+
+ [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
+ static extern void gst_event_unref(IntPtr raw);
+
+ protected override void Unref (IntPtr raw)
+ {
+ if (Owned) {
+ gst_event_unref (raw);
+ Owned = false;
+ }
+ }
+
+ class FinalizerInfo {
+ IntPtr handle;
+
+ public FinalizerInfo (IntPtr handle)
+ {
+ this.handle = handle;
+ }
+
+ public bool Handler ()
+ {
+ gst_event_unref (handle);
+ return false;
+ }
+ }
+
+ ~Event ()
+ {
+ if (!Owned)
+ return;
+ FinalizerInfo info = new FinalizerInfo (Handle);
+ GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler));
+ }
+
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;