diff options
Diffstat (limited to 'sources/generated/Gst.Base/BaseSrc.cs')
-rw-r--r-- | sources/generated/Gst.Base/BaseSrc.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sources/generated/Gst.Base/BaseSrc.cs b/sources/generated/Gst.Base/BaseSrc.cs index 4edcc3b..f5cac39 100644 --- a/sources/generated/Gst.Base/BaseSrc.cs +++ b/sources/generated/Gst.Base/BaseSrc.cs @@ -1579,6 +1579,7 @@ namespace Gst.Base { [DllImport("gstbase-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern bool gst_base_src_new_seamless_segment(IntPtr raw, long start, long stop, long time); + [Obsolete] public bool NewSeamlessSegment(long start, long stop, long time) { bool raw_ret = gst_base_src_new_seamless_segment(Handle, start, stop, time); bool ret = raw_ret; @@ -1586,6 +1587,17 @@ namespace Gst.Base { } [DllImport("gstbase-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] + static extern bool gst_base_src_new_segment(IntPtr raw, IntPtr segment); + + public bool NewSegment(Gst.Segment segment) { + IntPtr native_segment = GLib.Marshaller.StructureToPtrAlloc (segment); + bool raw_ret = gst_base_src_new_segment(Handle, native_segment); + bool ret = raw_ret; + Marshal.FreeHGlobal (native_segment); + return ret; + } + + [DllImport("gstbase-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern bool gst_base_src_query_latency(IntPtr raw, out bool live, out ulong min_latency, out ulong max_latency); public bool QueryLatency(out bool live, out ulong min_latency, out ulong max_latency) { |