static int NewSample_cb(IntPtr inst) { try { AppSink __obj = GLib.Object.GetObject(inst, false) as AppSink; Gst.FlowReturn __result; __result = __obj.OnNewSample(); return((int)__result); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }