static int SetupMedia_cb(IntPtr inst, IntPtr media)
 {
     try {
         IRTSPExtensionImplementor __obj = GLib.Object.GetObject(inst, false) as IRTSPExtensionImplementor;
         Gst.Rtsp.RTSPResult       __result;
         __result = __obj.SetupMedia(Gst.Sdp.SDPMedia.New(media));
         return((int)__result);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }