Use re-exported once_cell

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1268>
This commit is contained in:
Bilal Elmoussaoui 2023-07-06 15:43:37 +02:00 committed by Sebastian Dröge
parent 2cc98bf410
commit dd2d7d9215
176 changed files with 146 additions and 182 deletions

View file

@ -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 }

View file

@ -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",

View file

@ -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;

View file

@ -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;

View file

@ -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::*;

View file

@ -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",

View file

@ -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");

View file

@ -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(

View file

@ -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]

View file

@ -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(

View file

@ -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" }

View file

@ -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: (

View file

@ -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"

View file

@ -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;

View file

@ -12,7 +12,6 @@ rust-version = "1.66"
url = "2"
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"
[lib]
name = "gstrsfile"

View file

@ -54,7 +54,7 @@ pub struct FileSink {
state: Mutex<State>,
}
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
gst::DebugCategory::new(
"rsfilesink",

View file

@ -54,7 +54,7 @@ pub struct FileSrc {
state: Mutex<State>,
}
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
gst::DebugCategory::new(
"rsfilesrc",

View file

@ -29,7 +29,7 @@ use sodiumoxide::crypto::box_;
use std::sync::Mutex;
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
gst::DebugCategory::new(
"sodiumdecrypter",

View file

@ -32,7 +32,7 @@ type BufferVec = SmallVec<[gst::Buffer; 16]>;
use std::sync::Mutex;
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
gst::DebugCategory::new(
"sodiumencrypter",

View file

@ -31,7 +31,7 @@ use std::path::PathBuf;
use pretty_assertions::assert_eq;
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
static SENDER_PUBLIC: Lazy<glib::Bytes> = Lazy::new(|| {
let public = [
66, 248, 199, 74, 216, 55, 228, 116, 52, 17, 147, 56, 65, 130, 134, 148, 157, 153, 235,

View file

@ -25,7 +25,7 @@
use gst::glib;
use gst::prelude::*;
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
use pretty_assertions::assert_eq;

View file

@ -18,8 +18,8 @@
// SPDX-License-Identifier: LGPL-2.1-or-later
use gst::glib;
use gst::glib::once_cell::sync::Lazy;
use gst::prelude::*;
use once_cell::sync::Lazy;
use std::env;
use std::sync::atomic::{AtomicU64, Ordering};

View file

@ -1,5 +1,5 @@
use gst::glib;
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
mod args;
use args::*;

View file

@ -14,7 +14,7 @@ use gst::prelude::*;
use gst::subclass::prelude::*;
use gst::EventView;
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
use gstthreadshare::runtime::executor::block_on_or_add_sub_task;
use gstthreadshare::runtime::{prelude::*, PadSink};

View file

@ -12,7 +12,7 @@ pub const ASYNC_MUTEX_ELEMENT_NAME: &str = "ts-standalone-async-mutex-sink";
pub const SYNC_MUTEX_ELEMENT_NAME: &str = "ts-standalone-sync-mutex-sink";
pub const TASK_ELEMENT_NAME: &str = "ts-standalone-task-sink";
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
gst::DebugCategory::new(
"ts-standalone-sink",

View file

@ -14,7 +14,7 @@ use gst::prelude::*;
use gst::subclass::prelude::*;
use gst::EventView;
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
use gstthreadshare::runtime::{prelude::*, PadSink};

View file

@ -15,7 +15,7 @@ use gst::prelude::*;
use gst::subclass::prelude::*;
use gst::EventView;
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
use gstthreadshare::runtime::prelude::*;
use gstthreadshare::runtime::{Context, PadSink, Task};

View file

@ -13,7 +13,7 @@ use gst::glib;
use gst::prelude::*;
use gst::subclass::prelude::*;
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
use std::sync::Mutex;
use std::time::Duration;

View file

@ -20,7 +20,7 @@
use gst::glib;
use gst::prelude::*;
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
use std::net;
use std::net::{IpAddr, Ipv4Addr, SocketAddr};

View file

@ -26,7 +26,7 @@ use gst::glib;
use gst::prelude::*;
use gst::subclass::prelude::*;
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
use std::sync::Mutex;
use std::time::Duration;

View file

@ -13,7 +13,7 @@ use gst::glib;
use gst::prelude::*;
use gst::subclass::prelude::*;
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
use std::mem::size_of;
use std::sync::Mutex;

View file

@ -21,7 +21,7 @@ use futures::future::{self, abortable, AbortHandle};
use gst::prelude::*;
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
use std::collections::VecDeque;
use std::sync::Arc;

View file

@ -25,7 +25,7 @@ use gst::glib;
use gst::prelude::*;
use gst::subclass::prelude::*;
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
use std::collections::HashMap;
use std::sync::{Arc, Mutex};

View file

@ -26,7 +26,7 @@ use gst::prelude::*;
use gst::subclass::prelude::*;
use gst_rtp::RTPBuffer;
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
use std::cmp::Ordering;
use std::collections::{BTreeSet, VecDeque};

View file

@ -25,7 +25,7 @@ use gst::glib;
use gst::prelude::*;
use gst::subclass::prelude::*;
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
use std::collections::{HashMap, VecDeque};
use std::sync::{Arc, Weak};

View file

@ -25,7 +25,7 @@ use gst::glib;
use gst::prelude::*;
use gst::subclass::prelude::*;
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
use std::collections::VecDeque;
use std::sync::Mutex;

View file

@ -5,7 +5,7 @@
use futures::prelude::*;
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
use std::collections::HashMap;
use std::io;

View file

@ -44,7 +44,7 @@ pub mod prelude {
pub use super::task::TaskImpl;
}
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
static RUNTIME_CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
gst::DebugCategory::new(

View file

@ -23,7 +23,7 @@ use futures::future::BoxFuture;
use gst::glib;
use gst::prelude::*;
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
use gio::prelude::*;

View file

@ -25,7 +25,7 @@ use gst::glib;
use gst::prelude::*;
use gst::subclass::prelude::*;
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
use std::io;
use std::net::{IpAddr, SocketAddr, TcpStream};

View file

@ -26,7 +26,7 @@ use gst::subclass::prelude::*;
use gst::EventView;
use gst::{element_error, error_msg};
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
use crate::runtime::executor::block_on_or_add_sub_task;
use crate::runtime::prelude::*;

View file

@ -25,7 +25,7 @@ use gst::prelude::*;
use gst::subclass::prelude::*;
use gst_net::*;
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
use std::i32;
use std::io;

View file

@ -21,7 +21,7 @@ use gst::prelude::*;
use std::sync::mpsc;
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
gst::DebugCategory::new(

View file

@ -29,7 +29,7 @@ use gst::prelude::*;
use gst::subclass::prelude::*;
use gst::EventView;
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
use std::sync::atomic::{AtomicBool, Ordering};
use std::sync::Mutex;

View file

@ -20,7 +20,7 @@
use gst::glib;
use gst::prelude::*;
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
use std::sync::mpsc;

View file

@ -17,7 +17,6 @@ nom = "7"
flavors = { git = "https://github.com/rust-av/flavors" }
muldiv = "1.0"
byteorder = "1.0"
once_cell = "1.0"
smallvec = "1.0"
[lib]

View file

@ -21,7 +21,7 @@ use gst::subclass::prelude::*;
use num_rational::Rational32;
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
use smallvec::SmallVec;

View file

@ -15,7 +15,6 @@ gst-base = { package = "gstreamer-base", git = "https://gitlab.freedesktop.org/g
gst-audio = { package = "gstreamer-audio", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs", features = ["v1_18"] }
gst-video = { package = "gstreamer-video", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs", features = ["v1_18"] }
gst-pbutils = { package = "gstreamer-pbutils", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs", features = ["v1_18"] }
once_cell = "1.0"
[lib]
name = "gstfmp4"

View file

@ -16,7 +16,7 @@ use std::collections::VecDeque;
use std::mem;
use std::sync::Mutex;
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
use super::boxes;
use super::Buffer;

View file

@ -15,7 +15,6 @@ gst-base = { package = "gstreamer-base", git = "https://gitlab.freedesktop.org/g
gst-audio = { package = "gstreamer-audio", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs", features = ["v1_18"] }
gst-video = { package = "gstreamer-video", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs", features = ["v1_18"] }
gst-pbutils = { package = "gstreamer-pbutils", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs", features = ["v1_18"] }
once_cell = "1.0"
[lib]
name = "gstmp4"

View file

@ -15,7 +15,7 @@ use gst_base::subclass::prelude::*;
use std::collections::VecDeque;
use std::sync::Mutex;
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
use super::boxes;

View file

@ -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"

View file

@ -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};

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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};

View file

@ -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(

View file

@ -10,10 +10,10 @@ use crate::playlist::{Playlist, SegmentFormatter};
use crate::HlsSink3PlaylistType;
use gio::prelude::*;
use glib::subclass::prelude::*;
use gst::glib::once_cell::sync::Lazy;
use gst::prelude::*;
use gst::subclass::prelude::*;
use m3u8_rs::MediaPlaylistType;
use once_cell::sync::Lazy;
use std::fs;
use std::io::Write;
use std::path;

View file

@ -6,8 +6,8 @@
//
// SPDX-License-Identifier: MPL-2.0
use gst::glib::once_cell::sync::Lazy;
use m3u8_rs::{MediaPlaylist, MediaPlaylistType, MediaSegment};
use once_cell::sync::Lazy;
use regex::Regex;
use std::io::Write;

View file

@ -7,9 +7,9 @@
// SPDX-License-Identifier: MPL-2.0
use gio::prelude::*;
use gst::glib::once_cell::sync::Lazy;
use gst::prelude::*;
use gsthlssink3::HlsSink3PlaylistType;
use once_cell::sync::Lazy;
use std::io::Write;
use std::sync::{mpsc, Arc, Mutex};
use std::time::Duration;

View file

@ -15,7 +15,6 @@ gst-base = { package = "gstreamer-base", git = "https://gitlab.freedesktop.org/g
gst-audio = { package = "gstreamer-audio", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" }
gst-video = { package = "gstreamer-video", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" }
byte-slice-cast = "1"
once_cell = "1.0"
byteorder = "1.0"
atomic_refcell = "0.1"
libloading = "0.8"

View file

@ -3,13 +3,13 @@
use gst::prelude::*;
use gst::subclass::prelude::*;
use once_cell::sync::OnceCell;
use gst::glib::once_cell::sync::OnceCell;
use std::sync::atomic;
use std::sync::Mutex;
use std::thread;
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
use crate::ndi;

View file

@ -28,7 +28,7 @@ mod ndisrcmeta;
#[cfg(feature = "doc")]
use gst::prelude::*;
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy, glib::Enum)]
#[repr(u32)]

View file

@ -8,7 +8,7 @@ use gst_base::subclass::prelude::*;
use std::sync::Mutex;
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
use crate::ndi::SendInstance;

View file

@ -7,12 +7,12 @@ use gst::subclass::prelude::*;
use gst_base::prelude::*;
use gst_base::subclass::prelude::*;
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
use std::mem;
use std::sync::Mutex;
static CAT: once_cell::sync::Lazy<gst::DebugCategory> = once_cell::sync::Lazy::new(|| {
static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
gst::DebugCategory::new(
"ndisinkcombiner",
gst::DebugColorFlags::empty(),

View file

@ -53,7 +53,7 @@ impl fmt::Debug for NdiSinkAudioMeta {
mod imp {
use glib::translate::*;
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
use std::mem;
use std::ptr;

View file

@ -9,7 +9,7 @@ use gst_base::subclass::prelude::*;
use std::sync::Mutex;
use std::u32;
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
use crate::ndisys;
use crate::RecvColorFormat;

View file

@ -14,7 +14,7 @@ use std::time;
use atomic_refcell::AtomicRefCell;
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
use crate::ndi::*;
use crate::ndisys;

View file

@ -5,7 +5,7 @@ use gst::subclass::prelude::*;
use std::sync::Mutex;
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
use crate::ndisrcmeta;

View file

@ -69,7 +69,7 @@ impl fmt::Debug for NdiSrcMeta {
mod imp {
use super::StreamType;
use glib::translate::*;
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
use std::mem;
use std::ptr;

View file

@ -8,6 +8,8 @@
clippy::missing_safety_doc
)]
use glib::once_cell::sync::OnceCell;
#[cfg(unix)]
use libloading::os::unix::{Library, Symbol};
#[cfg(windows)]
@ -322,11 +324,10 @@ pub const NDIlib_compressed_packet_flags_keyframe: u32 = 1;
#[cfg(feature = "advanced-sdk")]
pub const NDIlib_compressed_packet_version_0: u32 = 44;
static FFI: once_cell::sync::OnceCell<FFI> = once_cell::sync::OnceCell::new();
static FFI: OnceCell<FFI> = OnceCell::new();
pub fn load() -> Result<(), glib::BoolError> {
static ERR: once_cell::sync::OnceCell<Result<(), glib::BoolError>> =
once_cell::sync::OnceCell::new();
static ERR: OnceCell<Result<(), glib::BoolError>> = OnceCell::new();
ERR.get_or_init(|| unsafe {
use std::env;

View file

@ -13,7 +13,6 @@ gst = { package = "gstreamer", git = "https://gitlab.freedesktop.org/gstreamer/g
gst-rtp = { package = "gstreamer-rtp", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs", features = ["v1_20"] }
gst-base = { package = "gstreamer-base", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs", features = ["v1_20"] }
gst-video = { package = "gstreamer-video", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs", features = ["v1_20"] }
once_cell = "1.0"
xmlparser = "0.13"
chrono = { version = "0.4", default-features = false }
cairo-rs = { git = "https://github.com/gtk-rs/gtk-rs-core", features=["use_glib"] }

View file

@ -13,7 +13,7 @@
* Since: plugins-rs-0.9.0
*/
use gst::glib;
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
mod onvifmetadatacombiner;
mod onvifmetadatadepay;

View file

@ -1,10 +1,10 @@
use gst::glib;
use gst::glib::once_cell::sync::Lazy;
use gst::prelude::*;
use gst::subclass::prelude::*;
use gst_base::prelude::*;
use gst_base::subclass::prelude::*;
use gst_base::AGGREGATOR_FLOW_NEED_DATA;
use once_cell::sync::Lazy;
use std::sync::Mutex;
#[derive(Default)]

View file

@ -1,8 +1,8 @@
use gst::glib;
use gst::glib::once_cell::sync::Lazy;
use gst::subclass::prelude::*;
use gst_rtp::prelude::*;
use gst_rtp::subclass::prelude::*;
use once_cell::sync::Lazy;
use std::sync::Mutex;
#[derive(Default)]

View file

@ -4,7 +4,7 @@ use gst::subclass::prelude::*;
use gst_video::prelude::*;
use pango::prelude::*;
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
use std::collections::HashSet;
use std::sync::Mutex;

View file

@ -10,7 +10,7 @@ use gst::glib;
use gst::prelude::*;
use gst::subclass::prelude::*;
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
use std::collections::BTreeMap;
use std::sync::{Condvar, Mutex};

View file

@ -1,8 +1,8 @@
use gst::glib;
use gst::glib::once_cell::sync::Lazy;
use gst::subclass::prelude::*;
use gst_rtp::prelude::*;
use gst_rtp::subclass::prelude::*;
use once_cell::sync::Lazy;
#[derive(Default)]
pub struct OnvifMetadataPay {}

View file

@ -12,7 +12,6 @@ rust-version = "1.66"
gst = { package = "gstreamer", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" }
gst-base = { package = "gstreamer-base", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" }
gst-rtp = { package = "gstreamer-rtp", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" }
once_cell = "1.0"
raptorq = "1.7"
[dev-dependencies]

View file

@ -11,7 +11,7 @@ use gst::subclass::prelude::*;
use gst_rtp::RTPBuffer;
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
use std::collections::BTreeMap;
use std::iter;

View file

@ -12,7 +12,7 @@ use gst::subclass::prelude::*;
use gst_rtp::rtp_buffer::*;
use gst_rtp::RTPBuffer;
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
use std::collections::HashSet;
use std::sync::{mpsc, Mutex};

View file

@ -17,7 +17,6 @@ mime = "0.3"
gst = { package = "gstreamer", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" }
gst-base = { package = "gstreamer-base", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" }
tokio = { version = "1.0", default-features = false, features = ["time", "rt-multi-thread"] }
once_cell = "1.0"
[dev-dependencies]
hyper = { version = "0.14", features = ["server"] }

View file

@ -17,7 +17,7 @@ use reqwest::{Client, Response, StatusCode};
use tokio::runtime;
use url::Url;
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
use gst::glib;
use gst::prelude::*;

View file

@ -12,7 +12,6 @@ rust-version = "1.66"
bitstream-io = "1.3"
gst = { package = "gstreamer", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs", features = ["v1_20"] }
gst-rtp = { package = "gstreamer-rtp", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs", features = ["v1_20"]}
once_cell = "1.0"
chrono = { version = "0.4", default-features = false }
[dev-dependencies]

View file

@ -232,7 +232,7 @@ impl From<ObuType> for u8 {
mod tests {
use super::*;
use bitstream_io::{BigEndian, BitRead, BitReader};
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
use std::io::Cursor;
#[allow(clippy::type_complexity)]

View file

@ -17,7 +17,7 @@ use std::{
};
use bitstream_io::{BitReader, BitWriter};
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
use crate::av1::common::{
err_flow, leb128_size, parse_leb128, write_leb128, AggregationHeader, ObuType, SizedObu,

View file

@ -17,7 +17,7 @@ use std::{
};
use bitstream_io::{BitReader, BitWriter};
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
use crate::av1::common::{
err_flow, leb128_size, write_leb128, ObuType, SizedObu, CLOCK_RATE, ENDIANNESS,

View file

@ -18,8 +18,8 @@
*
*/
use chrono::Duration;
use gst::glib::once_cell::sync::Lazy;
use gst::{glib, prelude::*, subclass::prelude::*};
use once_cell::sync::Lazy;
use std::{
collections::{BTreeMap, VecDeque},
fmt,

View file

@ -19,7 +19,6 @@ gst-utils = { git="https://gitlab.freedesktop.org/gstreamer/gstreamer-rs", packa
gst-base = { git="https://gitlab.freedesktop.org/gstreamer/gstreamer-rs", package = "gstreamer-base" }
uuid = { version = "1", features = ["v4"] }
once_cell = "1.0"
anyhow = "1"
thiserror = "1"
futures = "0.3"

View file

@ -9,7 +9,6 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs"
rust-version = "1.66"
[dependencies]
once_cell = "1.0"
anyhow = "1"
tokio = { version = "1", features = ["fs", "io-util", "macros", "rt-multi-thread", "time"] }
tokio-native-tls = "0.3.0"

View file

@ -8,9 +8,9 @@ use async_tungstenite::tungstenite::Message as WsMessage;
use futures::channel::mpsc;
use futures::prelude::*;
use gst::glib;
use gst::glib::once_cell::sync::Lazy;
use gst::glib::prelude::*;
use gst::subclass::prelude::*;
use once_cell::sync::Lazy;
use std::path::PathBuf;
use std::sync::Mutex;
use tokio::task;

View file

@ -11,7 +11,7 @@
* Since: plugins-rs-0.9
*/
use gst::glib;
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
use tokio::runtime;
mod aws_kvs_signaller;

View file

@ -8,9 +8,9 @@ use crate::RUNTIME;
use anyhow::anyhow;
use futures::executor::block_on;
use gst::glib;
use gst::glib::once_cell::sync::Lazy;
use gst::prelude::*;
use gst::subclass::prelude::*;
use once_cell::sync::Lazy;
use serde::{Deserialize, Serialize};
use std::collections::HashMap;
use std::sync::{Arc, Mutex};

View file

@ -1,8 +1,8 @@
use gst::glib;
use gst::glib::once_cell::sync::Lazy;
use gst::glib::subclass::*;
use gst::prelude::*;
use gst::subclass::prelude::*;
use once_cell::sync::Lazy;
#[derive(Copy, Clone)]
pub struct Signallable {

View file

@ -8,10 +8,10 @@ use async_tungstenite::tungstenite::Message as WsMessage;
use futures::channel::mpsc;
use futures::prelude::*;
use gst::glib;
use gst::glib::once_cell::sync::Lazy;
use gst::glib::prelude::*;
use gst::subclass::prelude::*;
use gst_plugin_webrtc_protocol as p;
use once_cell::sync::Lazy;
use std::collections::HashSet;
use std::ops::ControlFlow;
use std::str::FromStr;

View file

@ -8,7 +8,7 @@ use gst::glib;
*
* Interface that WebRTC elements can implement their own protocol with.
*/
use once_cell::sync::Lazy;
use gst::glib::once_cell::sync::Lazy;
// Expose traits and objects from the module itself so it exactly looks like
// generated bindings
pub use imp::WebRTCSignallerRole;

View file

@ -5,8 +5,8 @@ use std::{
};
use anyhow::{Context, Error};
use gst::glib::once_cell::sync::Lazy;
use gst::{glib, prelude::*};
use once_cell::sync::Lazy;
static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
gst::DebugCategory::new(

View file

@ -1,10 +1,10 @@
// SPDX-License-Identifier: MPL-2.0
use gst::glib::once_cell::sync::Lazy;
use gst::{
glib::{self, value::FromValue},
prelude::*,
};
use once_cell::sync::Lazy;
use super::imp::VideoEncoder;

Some files were not shown because too many files have changed in this diff Show more