allocators: Ignore init_once() function correctly

This commit is contained in:
Sebastian Dröge 2023-11-11 11:43:17 +02:00
parent 39b472ce8b
commit 4c6bb9eefa
2 changed files with 2 additions and 11 deletions

View file

@ -103,6 +103,6 @@ cfg_condition = "unix"
name = "get" name = "get"
manual = true manual = true
[[object.function]] [[object.function]]
name = "once_init" name = "init_once"
manual = true manual = true

View file

@ -4,7 +4,6 @@
// DO NOT EDIT // DO NOT EDIT
use crate::FdAllocator; use crate::FdAllocator;
use glib::translate::*;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GstShmAllocator")] #[doc(alias = "GstShmAllocator")]
@ -15,15 +14,7 @@ glib::wrapper! {
} }
} }
impl ShmAllocator { impl ShmAllocator {}
#[doc(alias = "gst_shm_allocator_init_once")]
pub fn init_once() {
assert_initialized_main_thread!();
unsafe {
ffi::gst_shm_allocator_init_once();
}
}
}
unsafe impl Send for ShmAllocator {} unsafe impl Send for ShmAllocator {}
unsafe impl Sync for ShmAllocator {} unsafe impl Sync for ShmAllocator {}