Ejemplo n.º 1
0
        public bool GetFirstPacket(Gst.Rtp.RTCPPacket packet)
        {
            IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal(System.Runtime.InteropServices.Marshal.SizeOf(this));

            System.Runtime.InteropServices.Marshal.StructureToPtr(this, this_as_native, false);
            IntPtr native_packet = GLib.Marshaller.StructureToPtrAlloc(packet);
            bool   raw_ret       = gst_rtcp_buffer_get_first_packet(this_as_native, native_packet);
            bool   ret           = raw_ret;

            ReadNative(this_as_native, ref this);
            System.Runtime.InteropServices.Marshal.FreeHGlobal(this_as_native);
            Marshal.FreeHGlobal(native_packet);
            return(ret);
        }
Ejemplo n.º 2
0
 static void ReadNative(IntPtr native, ref Gst.Rtp.RTCPPacket target)
 {
     target = New(native);
 }