Пример #1
0
 public IteratorFoldFunctionWrapper(Gst.IteratorFoldFunction managed)
 {
     this.managed = managed;
     if (managed != null)
     {
         NativeDelegate = new IteratorFoldFunctionNative(NativeCallback);
     }
 }
Пример #2
0
        public Gst.IteratorResult Fold(Gst.IteratorFoldFunction func, GLib.Value _ret)
        {
            GstSharp.IteratorFoldFunctionWrapper func_wrapper = new GstSharp.IteratorFoldFunctionWrapper(func);
            IntPtr native__ret = GLib.Marshaller.StructureToPtrAlloc(_ret);
            int    raw_ret     = gst_iterator_fold(Handle, func_wrapper.NativeDelegate, native__ret, IntPtr.Zero);

            Gst.IteratorResult ret = (Gst.IteratorResult)raw_ret;
            Marshal.FreeHGlobal(native__ret);
            return(ret);
        }