bool InvokeNative(Gst.Buffer transbuf, Gst.CustomMeta meta, Gst.Buffer buffer, uint type, IntPtr data)
        {
            IntPtr native_meta = GLib.Marshaller.StructureToPtrAlloc(meta);
            bool   __result    = native_cb(transbuf == null ? IntPtr.Zero : transbuf.Handle, native_meta, buffer == null ? IntPtr.Zero : buffer.Handle, type, __data, __data);

            Marshal.FreeHGlobal(native_meta);
            return(__result);
        }
Exemplo n.º 2
0
        public Gst.CustomMeta GetCustomMeta(string name)
        {
            IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup(name);
            IntPtr raw_ret     = gst_buffer_get_custom_meta(Handle, native_name);

            Gst.CustomMeta ret = Gst.CustomMeta.New(raw_ret);
            GLib.Marshaller.Free(native_name);
            return(ret);
        }
Exemplo n.º 3
0
 static void ReadNative(IntPtr native, ref Gst.CustomMeta target)
 {
     target = New(native);
 }