static IntPtr TryPullSampleEvent_cb(IntPtr inst, ulong timeout) { try { AppSink __obj = GLib.Object.GetObject(inst, false) as AppSink; Gst.Sample __result; __result = __obj.OnTryPullSampleEvent(timeout); return(__result == null ? IntPtr.Zero : __result.OwnedCopy); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }