mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-06-15 20:50:35 +00:00
15 lines
343 B
Rust
15 lines
343 B
Rust
|
use glib::translate::*;
|
||
|
|
||
|
use crate::ShmAllocator;
|
||
|
|
||
|
impl ShmAllocator {
|
||
|
#[doc(alias = "gst_shm_allocator_get")]
|
||
|
pub fn get() -> Option<gst::Allocator> {
|
||
|
assert_initialized_main_thread!();
|
||
|
unsafe {
|
||
|
ffi::gst_shm_allocator_init_once();
|
||
|
from_glib_full(ffi::gst_shm_allocator_get())
|
||
|
}
|
||
|
}
|
||
|
}
|