コード例 #1
0
        public Gst.Base.CollectData AddPad(Gst.Pad pad, uint size, Gst.Base.CollectDataDestroyNotify destroy_notify, bool _lock)
        {
            Gst.BaseSharp.CollectDataDestroyNotifyWrapper destroy_notify_wrapper = new Gst.BaseSharp.CollectDataDestroyNotifyWrapper(destroy_notify);
            destroy_notify_wrapper.PersistUntilCalled();
            IntPtr raw_ret = gst_collect_pads_add_pad(Handle, pad == null ? IntPtr.Zero : pad.Handle, size, destroy_notify_wrapper.NativeDelegate, _lock);

            Gst.Base.CollectData ret = Gst.Base.CollectData.New(raw_ret);
            return(ret);
        }
コード例 #2
0
		public CollectDataDestroyNotifyWrapper (Gst.Base.CollectDataDestroyNotify managed)
		{
			this.managed = managed;
			if (managed != null)
				NativeDelegate = new CollectDataDestroyNotifyNative (NativeCallback);
		}