diff options
author | Bilal Elmoussaoui <belmouss@redhat.com> | 2023-07-06 16:43:37 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2023-07-06 17:50:49 +0300 |
commit | dd2d7d9215494cdaac4a361b9fea8fdf01742153 (patch) | |
tree | ee335254ac492f376dbc71abb5d267b5c8f16ac6 /audio/audiofx | |
parent | 2cc98bf410f687a1779edb86dd259f377cca1c7b (diff) |
Use re-exported once_cell
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1268>
Diffstat (limited to 'audio/audiofx')
-rw-r--r-- | audio/audiofx/Cargo.toml | 1 | ||||
-rw-r--r-- | audio/audiofx/src/audioecho/imp.rs | 2 | ||||
-rw-r--r-- | audio/audiofx/src/audioloudnorm/imp.rs | 2 | ||||
-rw-r--r-- | audio/audiofx/src/audiornnoise/imp.rs | 2 | ||||
-rw-r--r-- | audio/audiofx/src/ebur128level/imp.rs | 2 | ||||
-rw-r--r-- | audio/audiofx/src/hrtfrender/imp.rs | 2 | ||||
-rw-r--r-- | audio/audiofx/tests/hrtfrender.rs | 2 |
7 files changed, 6 insertions, 7 deletions
diff --git a/audio/audiofx/Cargo.toml b/audio/audiofx/Cargo.toml index 44795263..ef3320dc 100644 --- a/audio/audiofx/Cargo.toml +++ b/audio/audiofx/Cargo.toml @@ -15,7 +15,6 @@ gst-audio = { package = "gstreamer-audio", git = "https://gitlab.freedesktop.org anyhow = "1" byte-slice-cast = "1.0" num-traits = "0.2" -once_cell = "1.0" ebur128 = "0.1" hrtf = "0.8" nnnoiseless = { version = "0.5", default-features = false } diff --git a/audio/audiofx/src/audioecho/imp.rs b/audio/audiofx/src/audioecho/imp.rs index a3f9423c..8983f425 100644 --- a/audio/audiofx/src/audioecho/imp.rs +++ b/audio/audiofx/src/audioecho/imp.rs @@ -19,7 +19,7 @@ use byte_slice_cast::*; use num_traits::cast::{FromPrimitive, ToPrimitive}; use num_traits::float::Float; -use once_cell::sync::Lazy; +use gst::glib::once_cell::sync::Lazy; static _CAT: Lazy<gst::DebugCategory> = Lazy::new(|| { gst::DebugCategory::new( "rsaudioecho", diff --git a/audio/audiofx/src/audioloudnorm/imp.rs b/audio/audiofx/src/audioloudnorm/imp.rs index 5ba17ad5..e73df077 100644 --- a/audio/audiofx/src/audioloudnorm/imp.rs +++ b/audio/audiofx/src/audioloudnorm/imp.rs @@ -22,7 +22,7 @@ use std::u64; use byte_slice_cast::*; -use once_cell::sync::Lazy; +use gst::glib::once_cell::sync::Lazy; use atomic_refcell::AtomicRefCell; diff --git a/audio/audiofx/src/audiornnoise/imp.rs b/audio/audiofx/src/audiornnoise/imp.rs index 8ebb9046..25e1b1aa 100644 --- a/audio/audiofx/src/audiornnoise/imp.rs +++ b/audio/audiofx/src/audiornnoise/imp.rs @@ -21,7 +21,7 @@ use nnnoiseless::DenoiseState; use byte_slice_cast::*; -use once_cell::sync::Lazy; +use gst::glib::once_cell::sync::Lazy; use atomic_refcell::AtomicRefCell; diff --git a/audio/audiofx/src/ebur128level/imp.rs b/audio/audiofx/src/ebur128level/imp.rs index bb39445b..7207be79 100644 --- a/audio/audiofx/src/ebur128level/imp.rs +++ b/audio/audiofx/src/ebur128level/imp.rs @@ -16,7 +16,7 @@ use std::i32; use std::sync::atomic; use std::sync::Mutex; -use once_cell::sync::Lazy; +use gst::glib::once_cell::sync::Lazy; use byte_slice_cast::*; diff --git a/audio/audiofx/src/hrtfrender/imp.rs b/audio/audiofx/src/hrtfrender/imp.rs index 06d49689..c38bbecb 100644 --- a/audio/audiofx/src/hrtfrender/imp.rs +++ b/audio/audiofx/src/hrtfrender/imp.rs @@ -23,7 +23,7 @@ use byte_slice_cast::*; use rayon::prelude::*; use rayon::{ThreadPool, ThreadPoolBuilder}; -use once_cell::sync::Lazy; +use gst::glib::once_cell::sync::Lazy; static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| { gst::DebugCategory::new( "hrtfrender", diff --git a/audio/audiofx/tests/hrtfrender.rs b/audio/audiofx/tests/hrtfrender.rs index 1c4ff997..9b61d2e8 100644 --- a/audio/audiofx/tests/hrtfrender.rs +++ b/audio/audiofx/tests/hrtfrender.rs @@ -9,7 +9,7 @@ use gst::glib; use gst::prelude::*; -use once_cell::sync::Lazy; +use gst::glib::once_cell::sync::Lazy; static CONFIG: Lazy<glib::Bytes> = Lazy::new(|| { let buff = include_bytes!("test.hrir"); |