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 | |
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')
-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 | ||||
-rw-r--r-- | audio/claxon/src/claxondec/imp.rs | 2 | ||||
-rw-r--r-- | audio/csound/Cargo.toml | 1 | ||||
-rw-r--r-- | audio/csound/src/filter/imp.rs | 2 | ||||
-rw-r--r-- | audio/lewton/Cargo.toml | 1 | ||||
-rw-r--r-- | audio/lewton/src/lewtondec/imp.rs | 2 | ||||
-rw-r--r-- | audio/spotify/Cargo.toml | 1 | ||||
-rw-r--r-- | audio/spotify/src/spotifyaudiosrc/imp.rs | 2 |
14 files changed, 10 insertions, 14 deletions
diff --git a/audio/audiofx/Cargo.toml b/audio/audiofx/Cargo.toml index 447952635..ef3320dcd 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 a3f9423c0..8983f4256 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 5ba17ad5e..e73df0777 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 8ebb9046c..25e1b1aaf 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 bb39445b6..7207be79c 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 06d496891..c38bbecb7 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 1c4ff997d..9b61d2e82 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"); diff --git a/audio/claxon/src/claxondec/imp.rs b/audio/claxon/src/claxondec/imp.rs index 001559e33..a5a335025 100644 --- a/audio/claxon/src/claxondec/imp.rs +++ b/audio/claxon/src/claxondec/imp.rs @@ -19,7 +19,7 @@ use atomic_refcell::AtomicRefCell; use byte_slice_cast::*; -use once_cell::sync::Lazy; +use gst::glib::once_cell::sync::Lazy; static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| { gst::DebugCategory::new( diff --git a/audio/csound/Cargo.toml b/audio/csound/Cargo.toml index 316787a58..7acf38176 100644 --- a/audio/csound/Cargo.toml +++ b/audio/csound/Cargo.toml @@ -13,7 +13,6 @@ gst = { package = "gstreamer", git = "https://gitlab.freedesktop.org/gstreamer/g gst-base = { package = "gstreamer-base", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" } gst-audio = { package = "gstreamer-audio", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" } csound = "0.1.8" -once_cell = "1.0" byte-slice-cast = "1.0" [dev-dependencies] diff --git a/audio/csound/src/filter/imp.rs b/audio/csound/src/filter/imp.rs index ed2a34269..a8052c5b0 100644 --- a/audio/csound/src/filter/imp.rs +++ b/audio/csound/src/filter/imp.rs @@ -23,7 +23,7 @@ use byte_slice_cast::*; use csound::{Csound, MessageType}; -use once_cell::sync::Lazy; +use gst::glib::once_cell::sync::Lazy; static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| { gst::DebugCategory::new( diff --git a/audio/lewton/Cargo.toml b/audio/lewton/Cargo.toml index cd8946e12..7bc5997b2 100644 --- a/audio/lewton/Cargo.toml +++ b/audio/lewton/Cargo.toml @@ -14,7 +14,6 @@ gst-audio = { package = "gstreamer-audio", git = "https://gitlab.freedesktop.org lewton = { version = "0.10", default-features = false } byte-slice-cast = "1.0" atomic_refcell = "0.1" -once_cell = "1.0" [dev-dependencies] gst-check = { package = "gstreamer-check", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" } diff --git a/audio/lewton/src/lewtondec/imp.rs b/audio/lewton/src/lewtondec/imp.rs index 977c06051..ae8d81ffd 100644 --- a/audio/lewton/src/lewtondec/imp.rs +++ b/audio/lewton/src/lewtondec/imp.rs @@ -18,7 +18,7 @@ use atomic_refcell::AtomicRefCell; use byte_slice_cast::*; -use once_cell::sync::Lazy; +use gst::glib::once_cell::sync::Lazy; struct State { header_bufs: ( diff --git a/audio/spotify/Cargo.toml b/audio/spotify/Cargo.toml index 3bfe057ff..ab1d6e8b7 100644 --- a/audio/spotify/Cargo.toml +++ b/audio/spotify/Cargo.toml @@ -11,7 +11,6 @@ rust-version = "1.66" [dependencies] gst = { package = "gstreamer", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" } gst-base = { package = "gstreamer-base", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" } -once_cell = "1.0" librespot = { version = "0.4", default-features = false } tokio = "1.0" futures = "0.3" diff --git a/audio/spotify/src/spotifyaudiosrc/imp.rs b/audio/spotify/src/spotifyaudiosrc/imp.rs index fcaab88fb..a04483f3f 100644 --- a/audio/spotify/src/spotifyaudiosrc/imp.rs +++ b/audio/spotify/src/spotifyaudiosrc/imp.rs @@ -9,7 +9,7 @@ use std::sync::{mpsc, Arc, Mutex, MutexGuard}; use futures::future::{AbortHandle, Abortable, Aborted}; -use once_cell::sync::Lazy; +use gst::glib::once_cell::sync::Lazy; use tokio::{runtime, task::JoinHandle}; use gst::glib; |