gstreamer-rs/gstreamer-sdp/src/s_d_p_message.rs

12 lines
293 B
Rust
Raw Normal View History

2018-03-15 16:04:49 +00:00
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)
}
}
}