Esempio n. 1
0
        public static uint RemoveLogFunction(Gst.LogFunction func)
        {
            GstSharp.LogFunctionWrapper func_wrapper = new GstSharp.LogFunctionWrapper(func);
            uint raw_ret = gst_debug_remove_log_function(func_wrapper.NativeDelegate);
            uint ret     = raw_ret;

            return(ret);
        }
Esempio n. 2
0
        public static void AddLogFunction(Gst.LogFunction func)
        {
            GstSharp.LogFunctionWrapper func_wrapper = new GstSharp.LogFunctionWrapper(func);
            IntPtr user_data;

            GLib.DestroyNotify notify;
            if (func == null)
            {
                user_data = IntPtr.Zero;
                notify    = null;
            }
            else
            {
                user_data = (IntPtr)GCHandle.Alloc(func_wrapper);
                notify    = GLib.DestroyHelper.NotifyHandler;
            }
            gst_debug_add_log_function(func_wrapper.NativeDelegate, user_data, notify);
        }