Example #1
0
 static bool HandleEvent_cb(IntPtr inst, IntPtr evnt)
 {
     try {
         RTPBaseDepayload __obj = GLib.Object.GetObject(inst, false) as RTPBaseDepayload;
         bool             __result;
         __result = __obj.OnHandleEvent(evnt == IntPtr.Zero ? null : (Gst.Event)GLib.Opaque.GetOpaque(evnt, typeof(Gst.Event), false));
         return(__result);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
Example #2
0
 static IntPtr ProcessRtpPacket_cb(IntPtr inst, IntPtr rtp_buffer)
 {
     try {
         RTPBaseDepayload __obj = GLib.Object.GetObject(inst, false) as RTPBaseDepayload;
         Gst.Buffer       __result;
         __result = __obj.OnProcessRtpPacket(Gst.Rtp.RTPBuffer.New(rtp_buffer));
         return(__result == null ? IntPtr.Zero : __result.OwnedCopy);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
Example #3
0
 static IntPtr Process_cb(IntPtr inst, IntPtr in_param)
 {
     try {
         RTPBaseDepayload __obj = GLib.Object.GetObject(inst, false) as RTPBaseDepayload;
         Gst.Buffer       __result;
         __result = __obj.OnProcess(in_param == IntPtr.Zero ? null : (Gst.Buffer)GLib.Opaque.GetOpaque(in_param, typeof(Gst.Buffer), false));
         return(__result == null ? IntPtr.Zero : __result.OwnedCopy);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }