forked from mirrors/gstreamer-rs
allocators: Ignore init_once()
function correctly
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1344>
This commit is contained in:
parent
a4c3a484cf
commit
408e97ad70
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