mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2025-02-23 22:36:24 +00:00
Allows us to set all the crates in the main workspace file, so changing their versions or branch is much simpler and reduce the amount of noise in the diff Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1450>
14 lines
350 B
Rust
14 lines
350 B
Rust
use glib::translate::*;
|
|
|
|
use crate::{ffi, 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())
|
|
}
|
|
}
|
|
}
|