diff --git a/gstreamer-allocators/Gir.toml b/gstreamer-allocators/Gir.toml index d44072111..8aed7e4c1 100644 --- a/gstreamer-allocators/Gir.toml +++ b/gstreamer-allocators/Gir.toml @@ -103,6 +103,6 @@ cfg_condition = "unix" name = "get" manual = true [[object.function]] - name = "once_init" + name = "init_once" manual = true diff --git a/gstreamer-allocators/src/auto/shm_allocator.rs b/gstreamer-allocators/src/auto/shm_allocator.rs index bdf729dd0..5bebd582d 100644 --- a/gstreamer-allocators/src/auto/shm_allocator.rs +++ b/gstreamer-allocators/src/auto/shm_allocator.rs @@ -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 {}