mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-21 17:11:04 +00:00
allocators: Ignore init_once()
function correctly
This commit is contained in:
parent
39b472ce8b
commit
4c6bb9eefa
2 changed files with 2 additions and 11 deletions
|
@ -103,6 +103,6 @@ cfg_condition = "unix"
|
|||
name = "get"
|
||||
manual = true
|
||||
[[object.function]]
|
||||
name = "once_init"
|
||||
name = "init_once"
|
||||
manual = true
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
// DO NOT EDIT
|
||||
|
||||
use crate::FdAllocator;
|
||||
use glib::translate::*;
|
||||
|
||||
glib::wrapper! {
|
||||
#[doc(alias = "GstShmAllocator")]
|
||||
|
@ -15,15 +14,7 @@ glib::wrapper! {
|
|||
}
|
||||
}
|
||||
|
||||
impl ShmAllocator {
|
||||
#[doc(alias = "gst_shm_allocator_init_once")]
|
||||
pub fn init_once() {
|
||||
assert_initialized_main_thread!();
|
||||
unsafe {
|
||||
ffi::gst_shm_allocator_init_once();
|
||||
}
|
||||
}
|
||||
}
|
||||
impl ShmAllocator {}
|
||||
|
||||
unsafe impl Send for ShmAllocator {}
|
||||
unsafe impl Sync for ShmAllocator {}
|
||||
|
|
Loading…
Reference in a new issue