Пример #1
0
        public static Gst.ClockReturn IdWait(IntPtr id, out long jitter)
        {
            int raw_ret = gst_clock_id_wait(id, out jitter);

            Gst.ClockReturn ret = (Gst.ClockReturn)raw_ret;
            return(ret);
        }
Пример #2
0
        public static Gst.ClockReturn IdWaitAsync(IntPtr id, Gst.ClockCallback func)
        {
            GstSharp.ClockCallbackWrapper func_wrapper = new GstSharp.ClockCallbackWrapper(func);
            IntPtr user_data;

            GLib.DestroyNotify destroy_data;
            if (func == null)
            {
                user_data    = IntPtr.Zero;
                destroy_data = null;
            }
            else
            {
                user_data    = (IntPtr)GCHandle.Alloc(func_wrapper);
                destroy_data = GLib.DestroyHelper.NotifyHandler;
            }
            int raw_ret = gst_clock_id_wait_async(id, func_wrapper.NativeDelegate, user_data, destroy_data);

            Gst.ClockReturn ret = (Gst.ClockReturn)raw_ret;
            return(ret);
        }