Example #1
0
        public Gst.Sdp.SDPBandwidth GetBandwidth(uint idx)
        {
            IntPtr raw_ret = gst_sdp_message_get_bandwidth(Handle, idx);

            Gst.Sdp.SDPBandwidth ret = Gst.Sdp.SDPBandwidth.New(raw_ret);
            return(ret);
        }
		public Gst.Sdp.SDPResult ReplaceBandwidth(uint idx, Gst.Sdp.SDPBandwidth bw) {
			IntPtr native_bw = GLib.Marshaller.StructureToPtrAlloc (bw);
			int raw_ret = gst_sdp_message_replace_bandwidth(Handle, idx, native_bw);
			Gst.Sdp.SDPResult ret = (Gst.Sdp.SDPResult) raw_ret;
			Marshal.FreeHGlobal (native_bw);
			return ret;
		}
Example #3
0
        public Gst.Sdp.SDPBandwidth GetBandwidth(uint idx)
        {
            IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal(System.Runtime.InteropServices.Marshal.SizeOf(this));

            System.Runtime.InteropServices.Marshal.StructureToPtr(this, this_as_native, false);
            IntPtr raw_ret = gst_sdp_media_get_bandwidth(this_as_native, idx);

            Gst.Sdp.SDPBandwidth ret = Gst.Sdp.SDPBandwidth.New(raw_ret);
            ReadNative(this_as_native, ref this);
            System.Runtime.InteropServices.Marshal.FreeHGlobal(this_as_native);
            return(ret);
        }
Example #4
0
        public Gst.Sdp.SDPResult ReplaceBandwidth(uint idx, Gst.Sdp.SDPBandwidth bw)
        {
            IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal(System.Runtime.InteropServices.Marshal.SizeOf(this));

            System.Runtime.InteropServices.Marshal.StructureToPtr(this, this_as_native, false);
            IntPtr native_bw = GLib.Marshaller.StructureToPtrAlloc(bw);
            int    raw_ret   = gst_sdp_media_replace_bandwidth(this_as_native, idx, native_bw);

            Gst.Sdp.SDPResult ret = (Gst.Sdp.SDPResult)raw_ret;
            ReadNative(this_as_native, ref this);
            System.Runtime.InteropServices.Marshal.FreeHGlobal(this_as_native);
            Marshal.FreeHGlobal(native_bw);
            return(ret);
        }
Example #5
0
 static void ReadNative(IntPtr native, ref Gst.Sdp.SDPBandwidth target)
 {
     target = New(native);
 }