From 408e97ad700f3f942dfa1b9a6dfed7532290f635 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sat, 11 Nov 2023 11:43:17 +0200 Subject: [PATCH] allocators: Ignore `init_once()` function correctly Part-of: --- gstreamer-allocators/Gir.toml | 2 +- gstreamer-allocators/src/auto/shm_allocator.rs | 11 +---------- 2 files changed, 2 insertions(+), 11 deletions(-) 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 {}