mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-30 05:50:31 +00:00
Use re-exported once_cell
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1268>
This commit is contained in:
parent
2cc98bf410
commit
dd2d7d9215
176 changed files with 146 additions and 182 deletions
|
@ -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 }
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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::*;
|
||||
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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" }
|
||||
|
|
|
@ -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: (
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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};
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use gst::glib;
|
||||
use once_cell::sync::Lazy;
|
||||
use gst::glib::once_cell::sync::Lazy;
|
||||
|
||||
mod args;
|
||||
use args::*;
|
||||
|
|
|
@ -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};
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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};
|
||||
|
||||
|
|
|
@ -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};
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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};
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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};
|
||||
|
|
|
@ -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};
|
||||
|
|
|
@ -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};
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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::*;
|
||||
|
||||
|
|
|
@ -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};
|
||||
|
|
|
@ -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::*;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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};
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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};
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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)]
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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(),
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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"] }
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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)]
|
||||
|
|
|
@ -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)]
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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};
|
||||
|
|
|
@ -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 {}
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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};
|
||||
|
|
|
@ -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"] }
|
||||
|
|
|
@ -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::*;
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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)]
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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};
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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
Loading…
Reference in a new issue