Ejemplo n.º 1
0
 static bool Query_cb(IntPtr inst, IntPtr pad, IntPtr query)
 {
     try {
         RTPBasePayload __obj = GLib.Object.GetObject(inst, false) as RTPBasePayload;
         bool           __result;
         __result = __obj.OnQuery(GLib.Object.GetObject(pad) as Gst.Pad, query == IntPtr.Zero ? null : (Gst.Query)GLib.Opaque.GetOpaque(query, typeof(Gst.Query), false));
         return(__result);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
Ejemplo n.º 2
0
 static int HandleBuffer_cb(IntPtr inst, IntPtr buffer)
 {
     try {
         RTPBasePayload __obj = GLib.Object.GetObject(inst, false) as RTPBasePayload;
         Gst.FlowReturn __result;
         __result = __obj.OnHandleBuffer(buffer == IntPtr.Zero ? null : (Gst.Buffer)GLib.Opaque.GetOpaque(buffer, typeof(Gst.Buffer), false));
         return((int)__result);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
Ejemplo n.º 3
0
 static bool SrcEvent_cb(IntPtr inst, IntPtr evnt)
 {
     try {
         RTPBasePayload __obj = GLib.Object.GetObject(inst, false) as RTPBasePayload;
         bool           __result;
         __result = __obj.OnSrcEvent(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;
     }
 }
Ejemplo n.º 4
0
 static IntPtr GetCaps_cb(IntPtr inst, IntPtr pad, IntPtr filter)
 {
     try {
         RTPBasePayload __obj = GLib.Object.GetObject(inst, false) as RTPBasePayload;
         Gst.Caps       __result;
         __result = __obj.OnGetCaps(GLib.Object.GetObject(pad) as Gst.Pad, filter == IntPtr.Zero ? null : (Gst.Caps)GLib.Opaque.GetOpaque(filter, typeof(Gst.Caps), false));
         return(__result == null ? IntPtr.Zero : __result.OwnedCopy);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }