s_d_p_message.rs 293 Bytes
Newer Older
Sebastian Dröge's avatar
Sebastian Dröge committed
1 2 3 4 5 6 7 8 9 10 11

impl SDPMessage {
    pub fn new() -> SDPMessage {
        assert_initialized_main_thread!();
        unsafe {
            let msg = glib_ffi::g_malloc(mem::size_of::<ffi::GstSDPMessage>());
            let _ = ffi::gst_sdp_message_new(msg);
            from_glib_full(msg)
        }
    }
}