mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-15 14:02:32 +00:00
12 lines
293 B
Rust
12 lines
293 B
Rust
|
|
||
|
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)
|
||
|
}
|
||
|
}
|
||
|
}
|