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 /net/aws | |
parent | 2cc98bf410f687a1779edb86dd259f377cca1c7b (diff) |
Use re-exported once_cell
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1268>
Diffstat (limited to 'net/aws')
-rw-r--r-- | net/aws/Cargo.toml | 1 | ||||
-rw-r--r-- | net/aws/src/s3hlssink/imp.rs | 2 | ||||
-rw-r--r-- | net/aws/src/s3sink/imp.rs | 2 | ||||
-rw-r--r-- | net/aws/src/s3src/imp.rs | 2 | ||||
-rw-r--r-- | net/aws/src/s3utils.rs | 2 | ||||
-rw-r--r-- | net/aws/src/transcribe_parse/imp.rs | 2 | ||||
-rw-r--r-- | net/aws/src/transcriber/imp.rs | 2 | ||||
-rw-r--r-- | net/aws/src/transcriber/mod.rs | 2 |
8 files changed, 7 insertions, 8 deletions
diff --git a/net/aws/Cargo.toml b/net/aws/Cargo.toml index 82b6631d2..fefb03ea4 100644 --- a/net/aws/Cargo.toml +++ b/net/aws/Cargo.toml @@ -29,7 +29,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", features = ["v1_16"] } http = "0.2.7" -once_cell = "1.0" percent-encoding = "2" tokio = { version = "1.0", features = [ "full" ] } serde = "1" diff --git a/net/aws/src/s3hlssink/imp.rs b/net/aws/src/s3hlssink/imp.rs index ac4b46014..92a27111f 100644 --- a/net/aws/src/s3hlssink/imp.rs +++ b/net/aws/src/s3hlssink/imp.rs @@ -9,7 +9,7 @@ // SPDX-License-Identifier: MPL-2.0 use futures::future; -use once_cell::sync::Lazy; +use gst::glib::once_cell::sync::Lazy; use std::io::Write; use std::str::FromStr; use std::sync::mpsc::{self, Receiver, SyncSender}; diff --git a/net/aws/src/s3sink/imp.rs b/net/aws/src/s3sink/imp.rs index 284a78155..a86cc4189 100644 --- a/net/aws/src/s3sink/imp.rs +++ b/net/aws/src/s3sink/imp.rs @@ -25,7 +25,7 @@ use aws_sdk_s3::{ }; use futures::future; -use once_cell::sync::Lazy; +use gst::glib::once_cell::sync::Lazy; use std::collections::HashMap; use std::convert::From; use std::sync::Mutex; diff --git a/net/aws/src/s3src/imp.rs b/net/aws/src/s3src/imp.rs index 6687649fa..361219c05 100644 --- a/net/aws/src/s3src/imp.rs +++ b/net/aws/src/s3src/imp.rs @@ -8,7 +8,7 @@ use bytes::Bytes; use futures::future; -use once_cell::sync::Lazy; +use gst::glib::once_cell::sync::Lazy; use std::sync::Mutex; use std::time::Duration; diff --git a/net/aws/src/s3utils.rs b/net/aws/src/s3utils.rs index d4df0b5d1..0fc705a5f 100644 --- a/net/aws/src/s3utils.rs +++ b/net/aws/src/s3utils.rs @@ -15,7 +15,7 @@ use aws_smithy_http::byte_stream::{error::Error, ByteStream}; use bytes::{buf::BufMut, Bytes, BytesMut}; use futures::stream::TryStreamExt; use futures::{future, Future}; -use once_cell::sync::Lazy; +use gst::glib::once_cell::sync::Lazy; use std::sync::Mutex; use std::time::Duration; use tokio::runtime; diff --git a/net/aws/src/transcribe_parse/imp.rs b/net/aws/src/transcribe_parse/imp.rs index 4a3a48653..aaa0a9027 100644 --- a/net/aws/src/transcribe_parse/imp.rs +++ b/net/aws/src/transcribe_parse/imp.rs @@ -11,7 +11,7 @@ use gst::subclass::prelude::*; use gst::{element_imp_error, error_msg}; use serde_derive::Deserialize; -use once_cell::sync::Lazy; +use gst::glib::once_cell::sync::Lazy; use std::sync::Mutex; diff --git a/net/aws/src/transcriber/imp.rs b/net/aws/src/transcriber/imp.rs index 1d77b14ac..929fbf414 100644 --- a/net/aws/src/transcriber/imp.rs +++ b/net/aws/src/transcriber/imp.rs @@ -31,7 +31,7 @@ use tokio::{runtime, sync::broadcast, task}; use std::collections::{BTreeSet, VecDeque}; use std::sync::{Arc, Mutex}; -use once_cell::sync::Lazy; +use gst::glib::once_cell::sync::Lazy; use super::transcribe::{TranscriberSettings, TranscriberStream, TranscriptEvent, TranscriptItem}; use super::translate::{TranslateLoop, TranslatedItem}; diff --git a/net/aws/src/transcriber/mod.rs b/net/aws/src/transcriber/mod.rs index fe13019c1..165c1f5cd 100644 --- a/net/aws/src/transcriber/mod.rs +++ b/net/aws/src/transcriber/mod.rs @@ -13,7 +13,7 @@ mod imp; mod transcribe; mod translate; -use once_cell::sync::Lazy; +use gst::glib::once_cell::sync::Lazy; static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| { gst::DebugCategory::new( |