コード例 #1
0
 public ulong AddProbe(PadProbeType mask, PadProbeCallback cb, IntPtr user_data, OldGLib.DestroyNotify destroy_data)
 {
     Hyena.Log.Debug ("[Streamrecorder.Gst.Pad]<PadAddProbe> START");
     PadProbeCallbackWrapper cb_wrapper = new PadProbeCallbackWrapper (cb);
     ulong ret = gst_pad_add_probe (raw, mask, cb_wrapper.NativeDelegate, user_data, destroy_data);
     Hyena.Log.Debug ("[Streamrecorder.Gst.Pad]<PadAddProbe> END (" + ret + ")");
     return ret;
 }
コード例 #2
0
        public ulong AddProbe(PadProbeType mask, PadProbeCallback cb, IntPtr user_data, OldGLib.DestroyNotify destroy_data)
        {
            Hyena.Log.Debug("[Streamrecorder.Gst.Pad]<PadAddProbe> START");
            PadProbeCallbackWrapper cb_wrapper = new PadProbeCallbackWrapper(cb);
            ulong ret = gst_pad_add_probe(raw, mask, cb_wrapper.NativeDelegate, user_data, destroy_data);

            Hyena.Log.Debug("[Streamrecorder.Gst.Pad]<PadAddProbe> END (" + ret + ")");
            return(ret);
        }
コード例 #3
0
        public static PadProbeCallback GetManagedDelegate(PadProbeCallbackNative native)
        {
            if (native == null)
            {
                return(null);
            }
            PadProbeCallbackWrapper wrapper = (PadProbeCallbackWrapper)native.Target;

            if (wrapper == null)
            {
                return(null);
            }
            return(wrapper.managed);
        }