mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-25 21:11:00 +00:00
Use once_cell crate directly again
The glib crate does not depend on it anymore and also does not re-export it anymore. Also switch some usages of OnceCell to OnceLock from std. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1441>
This commit is contained in:
parent
08af298d11
commit
4ad101b53b
177 changed files with 222 additions and 151 deletions
35
Cargo.lock
generated
35
Cargo.lock
generated
|
@ -2134,6 +2134,7 @@ dependencies = [
|
||||||
"hrtf",
|
"hrtf",
|
||||||
"nnnoiseless",
|
"nnnoiseless",
|
||||||
"num-traits",
|
"num-traits",
|
||||||
|
"once_cell",
|
||||||
"rayon",
|
"rayon",
|
||||||
"smallvec",
|
"smallvec",
|
||||||
]
|
]
|
||||||
|
@ -2160,6 +2161,7 @@ dependencies = [
|
||||||
"gstreamer-audio",
|
"gstreamer-audio",
|
||||||
"gstreamer-base",
|
"gstreamer-base",
|
||||||
"gstreamer-check",
|
"gstreamer-check",
|
||||||
|
"once_cell",
|
||||||
"percent-encoding",
|
"percent-encoding",
|
||||||
"rand",
|
"rand",
|
||||||
"serde",
|
"serde",
|
||||||
|
@ -2183,6 +2185,7 @@ dependencies = [
|
||||||
"gstreamer-video",
|
"gstreamer-video",
|
||||||
"image",
|
"image",
|
||||||
"muldiv",
|
"muldiv",
|
||||||
|
"once_cell",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -2217,6 +2220,7 @@ dependencies = [
|
||||||
"gstreamer-check",
|
"gstreamer-check",
|
||||||
"gstreamer-video",
|
"gstreamer-video",
|
||||||
"nom",
|
"nom",
|
||||||
|
"once_cell",
|
||||||
"pango",
|
"pango",
|
||||||
"pangocairo",
|
"pangocairo",
|
||||||
"pretty_assertions",
|
"pretty_assertions",
|
||||||
|
@ -2237,6 +2241,7 @@ dependencies = [
|
||||||
"gstreamer-audio",
|
"gstreamer-audio",
|
||||||
"gstreamer-base",
|
"gstreamer-base",
|
||||||
"gstreamer-check",
|
"gstreamer-check",
|
||||||
|
"once_cell",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -2249,6 +2254,7 @@ dependencies = [
|
||||||
"gstreamer-base",
|
"gstreamer-base",
|
||||||
"gstreamer-video",
|
"gstreamer-video",
|
||||||
"num_cpus",
|
"num_cpus",
|
||||||
|
"once_cell",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -2265,6 +2271,7 @@ dependencies = [
|
||||||
"gstreamer-check",
|
"gstreamer-check",
|
||||||
"gstreamer-video",
|
"gstreamer-video",
|
||||||
"gtk4",
|
"gtk4",
|
||||||
|
"once_cell",
|
||||||
"parking_lot",
|
"parking_lot",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -2278,6 +2285,7 @@ dependencies = [
|
||||||
"gstreamer",
|
"gstreamer",
|
||||||
"gstreamer-check",
|
"gstreamer-check",
|
||||||
"gstreamer-video",
|
"gstreamer-video",
|
||||||
|
"once_cell",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -2287,6 +2295,7 @@ dependencies = [
|
||||||
"gst-plugin-version-helper",
|
"gst-plugin-version-helper",
|
||||||
"gstreamer",
|
"gstreamer",
|
||||||
"gstreamer-base",
|
"gstreamer-base",
|
||||||
|
"once_cell",
|
||||||
"url",
|
"url",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -2303,6 +2312,7 @@ dependencies = [
|
||||||
"muldiv",
|
"muldiv",
|
||||||
"nom",
|
"nom",
|
||||||
"num-rational",
|
"num-rational",
|
||||||
|
"once_cell",
|
||||||
"smallvec",
|
"smallvec",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -2322,6 +2332,7 @@ dependencies = [
|
||||||
"gstreamer-pbutils",
|
"gstreamer-pbutils",
|
||||||
"gstreamer-video",
|
"gstreamer-video",
|
||||||
"m3u8-rs",
|
"m3u8-rs",
|
||||||
|
"once_cell",
|
||||||
"quick-xml",
|
"quick-xml",
|
||||||
"serde",
|
"serde",
|
||||||
]
|
]
|
||||||
|
@ -2356,6 +2367,7 @@ dependencies = [
|
||||||
"gstreamer-gl-x11",
|
"gstreamer-gl-x11",
|
||||||
"gstreamer-video",
|
"gstreamer-video",
|
||||||
"gtk4",
|
"gtk4",
|
||||||
|
"once_cell",
|
||||||
"windows-sys 0.52.0",
|
"windows-sys 0.52.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -2390,6 +2402,7 @@ dependencies = [
|
||||||
"gstreamer-check",
|
"gstreamer-check",
|
||||||
"gstreamer-video",
|
"gstreamer-video",
|
||||||
"num-traits",
|
"num-traits",
|
||||||
|
"once_cell",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -2417,6 +2430,7 @@ dependencies = [
|
||||||
"gst-plugin-version-helper",
|
"gst-plugin-version-helper",
|
||||||
"gstreamer",
|
"gstreamer",
|
||||||
"gstreamer-check",
|
"gstreamer-check",
|
||||||
|
"once_cell",
|
||||||
"serde",
|
"serde",
|
||||||
"serde_json",
|
"serde_json",
|
||||||
]
|
]
|
||||||
|
@ -2432,6 +2446,7 @@ dependencies = [
|
||||||
"gstreamer-audio",
|
"gstreamer-audio",
|
||||||
"gstreamer-check",
|
"gstreamer-check",
|
||||||
"lewton",
|
"lewton",
|
||||||
|
"once_cell",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -2447,6 +2462,7 @@ dependencies = [
|
||||||
"gtk4",
|
"gtk4",
|
||||||
"muldiv",
|
"muldiv",
|
||||||
"num-rational",
|
"num-rational",
|
||||||
|
"once_cell",
|
||||||
"parking_lot",
|
"parking_lot",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -2461,6 +2477,7 @@ dependencies = [
|
||||||
"gstreamer-base",
|
"gstreamer-base",
|
||||||
"gstreamer-pbutils",
|
"gstreamer-pbutils",
|
||||||
"gstreamer-video",
|
"gstreamer-video",
|
||||||
|
"once_cell",
|
||||||
"tempfile",
|
"tempfile",
|
||||||
"url",
|
"url",
|
||||||
]
|
]
|
||||||
|
@ -2481,6 +2498,7 @@ dependencies = [
|
||||||
"gstreamer-base",
|
"gstreamer-base",
|
||||||
"gstreamer-video",
|
"gstreamer-video",
|
||||||
"libloading",
|
"libloading",
|
||||||
|
"once_cell",
|
||||||
"quick-xml",
|
"quick-xml",
|
||||||
"smallvec",
|
"smallvec",
|
||||||
"thiserror",
|
"thiserror",
|
||||||
|
@ -2497,6 +2515,7 @@ dependencies = [
|
||||||
"gstreamer-base",
|
"gstreamer-base",
|
||||||
"gstreamer-rtp",
|
"gstreamer-rtp",
|
||||||
"gstreamer-video",
|
"gstreamer-video",
|
||||||
|
"once_cell",
|
||||||
"pango",
|
"pango",
|
||||||
"pangocairo",
|
"pangocairo",
|
||||||
"xmlparser",
|
"xmlparser",
|
||||||
|
@ -2525,6 +2544,7 @@ dependencies = [
|
||||||
"gstreamer-base",
|
"gstreamer-base",
|
||||||
"gstreamer-check",
|
"gstreamer-check",
|
||||||
"gstreamer-rtp",
|
"gstreamer-rtp",
|
||||||
|
"once_cell",
|
||||||
"rand",
|
"rand",
|
||||||
"raptorq",
|
"raptorq",
|
||||||
]
|
]
|
||||||
|
@ -2538,6 +2558,7 @@ dependencies = [
|
||||||
"gstreamer",
|
"gstreamer",
|
||||||
"gstreamer-check",
|
"gstreamer-check",
|
||||||
"gstreamer-video",
|
"gstreamer-video",
|
||||||
|
"once_cell",
|
||||||
"rav1e",
|
"rav1e",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -2548,6 +2569,7 @@ dependencies = [
|
||||||
"gst-plugin-version-helper",
|
"gst-plugin-version-helper",
|
||||||
"gstreamer",
|
"gstreamer",
|
||||||
"gstreamer-check",
|
"gstreamer-check",
|
||||||
|
"once_cell",
|
||||||
"regex",
|
"regex",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -2562,6 +2584,7 @@ dependencies = [
|
||||||
"headers",
|
"headers",
|
||||||
"hyper",
|
"hyper",
|
||||||
"mime",
|
"mime",
|
||||||
|
"once_cell",
|
||||||
"reqwest",
|
"reqwest",
|
||||||
"tokio",
|
"tokio",
|
||||||
"url",
|
"url",
|
||||||
|
@ -2577,6 +2600,7 @@ dependencies = [
|
||||||
"gstreamer",
|
"gstreamer",
|
||||||
"gstreamer-check",
|
"gstreamer-check",
|
||||||
"gstreamer-rtp",
|
"gstreamer-rtp",
|
||||||
|
"once_cell",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -2609,6 +2633,7 @@ dependencies = [
|
||||||
"gstreamer",
|
"gstreamer",
|
||||||
"gstreamer-base",
|
"gstreamer-base",
|
||||||
"librespot",
|
"librespot",
|
||||||
|
"once_cell",
|
||||||
"tokio",
|
"tokio",
|
||||||
"url",
|
"url",
|
||||||
]
|
]
|
||||||
|
@ -2619,6 +2644,7 @@ version = "0.12.0-alpha.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"gst-plugin-version-helper",
|
"gst-plugin-version-helper",
|
||||||
"gstreamer",
|
"gstreamer",
|
||||||
|
"once_cell",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -2629,6 +2655,7 @@ dependencies = [
|
||||||
"gstreamer",
|
"gstreamer",
|
||||||
"gstreamer-check",
|
"gstreamer-check",
|
||||||
"hyphenation",
|
"hyphenation",
|
||||||
|
"once_cell",
|
||||||
"textwrap",
|
"textwrap",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -2676,6 +2703,7 @@ dependencies = [
|
||||||
"gstreamer-check",
|
"gstreamer-check",
|
||||||
"gstreamer-video",
|
"gstreamer-video",
|
||||||
"gtk4",
|
"gtk4",
|
||||||
|
"once_cell",
|
||||||
"parking_lot",
|
"parking_lot",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -2686,6 +2714,7 @@ dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"gst-plugin-version-helper",
|
"gst-plugin-version-helper",
|
||||||
"gstreamer",
|
"gstreamer",
|
||||||
|
"once_cell",
|
||||||
"regex",
|
"regex",
|
||||||
"signal-hook",
|
"signal-hook",
|
||||||
]
|
]
|
||||||
|
@ -2701,6 +2730,7 @@ dependencies = [
|
||||||
"gstreamer-base",
|
"gstreamer-base",
|
||||||
"gstreamer-video",
|
"gstreamer-video",
|
||||||
"num-traits",
|
"num-traits",
|
||||||
|
"once_cell",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -2713,6 +2743,7 @@ dependencies = [
|
||||||
"gstreamer",
|
"gstreamer",
|
||||||
"gstreamer-app",
|
"gstreamer-app",
|
||||||
"more-asserts",
|
"more-asserts",
|
||||||
|
"once_cell",
|
||||||
"thiserror",
|
"thiserror",
|
||||||
"url",
|
"url",
|
||||||
]
|
]
|
||||||
|
@ -2741,6 +2772,7 @@ dependencies = [
|
||||||
"gstreamer-video",
|
"gstreamer-video",
|
||||||
"image",
|
"image",
|
||||||
"image_hasher",
|
"image_hasher",
|
||||||
|
"once_cell",
|
||||||
"rgb",
|
"rgb",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -2753,6 +2785,7 @@ dependencies = [
|
||||||
"gstreamer-check",
|
"gstreamer-check",
|
||||||
"gstreamer-video",
|
"gstreamer-video",
|
||||||
"libwebp-sys2",
|
"libwebp-sys2",
|
||||||
|
"once_cell",
|
||||||
"pretty_assertions",
|
"pretty_assertions",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -2791,6 +2824,7 @@ dependencies = [
|
||||||
"human_bytes",
|
"human_bytes",
|
||||||
"livekit-api",
|
"livekit-api",
|
||||||
"livekit-protocol",
|
"livekit-protocol",
|
||||||
|
"once_cell",
|
||||||
"parse_link_header",
|
"parse_link_header",
|
||||||
"rand",
|
"rand",
|
||||||
"regex",
|
"regex",
|
||||||
|
@ -2851,6 +2885,7 @@ dependencies = [
|
||||||
"gstreamer",
|
"gstreamer",
|
||||||
"gstreamer-sdp",
|
"gstreamer-sdp",
|
||||||
"gstreamer-webrtc",
|
"gstreamer-webrtc",
|
||||||
|
"once_cell",
|
||||||
"parse_link_header",
|
"parse_link_header",
|
||||||
"reqwest",
|
"reqwest",
|
||||||
"tokio",
|
"tokio",
|
||||||
|
|
|
@ -21,6 +21,7 @@ nnnoiseless = { version = "0.5", default-features = false }
|
||||||
smallvec = "1"
|
smallvec = "1"
|
||||||
atomic_refcell = "0.1"
|
atomic_refcell = "0.1"
|
||||||
rayon = "1.5"
|
rayon = "1.5"
|
||||||
|
once_cell = "1"
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
name = "gstrsaudiofx"
|
name = "gstrsaudiofx"
|
||||||
|
|
|
@ -19,7 +19,7 @@ use byte_slice_cast::*;
|
||||||
use num_traits::cast::{FromPrimitive, ToPrimitive};
|
use num_traits::cast::{FromPrimitive, ToPrimitive};
|
||||||
use num_traits::float::Float;
|
use num_traits::float::Float;
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
static _CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
|
static _CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
|
||||||
gst::DebugCategory::new(
|
gst::DebugCategory::new(
|
||||||
"rsaudioecho",
|
"rsaudioecho",
|
||||||
|
|
|
@ -22,7 +22,7 @@ use std::u64;
|
||||||
|
|
||||||
use byte_slice_cast::*;
|
use byte_slice_cast::*;
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
use atomic_refcell::AtomicRefCell;
|
use atomic_refcell::AtomicRefCell;
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ use nnnoiseless::DenoiseState;
|
||||||
|
|
||||||
use byte_slice_cast::*;
|
use byte_slice_cast::*;
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
use atomic_refcell::AtomicRefCell;
|
use atomic_refcell::AtomicRefCell;
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ use std::i32;
|
||||||
use std::sync::atomic;
|
use std::sync::atomic;
|
||||||
use std::sync::Mutex;
|
use std::sync::Mutex;
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
use byte_slice_cast::*;
|
use byte_slice_cast::*;
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@ use byte_slice_cast::*;
|
||||||
use rayon::prelude::*;
|
use rayon::prelude::*;
|
||||||
use rayon::{ThreadPool, ThreadPoolBuilder};
|
use rayon::{ThreadPool, ThreadPoolBuilder};
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
|
static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
|
||||||
gst::DebugCategory::new(
|
gst::DebugCategory::new(
|
||||||
"hrtfrender",
|
"hrtfrender",
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
use gst::glib;
|
use gst::glib;
|
||||||
use gst::prelude::*;
|
use gst::prelude::*;
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
static CONFIG: Lazy<glib::Bytes> = Lazy::new(|| {
|
static CONFIG: Lazy<glib::Bytes> = Lazy::new(|| {
|
||||||
let buff = include_bytes!("test.hrir");
|
let buff = include_bytes!("test.hrir");
|
||||||
|
|
|
@ -19,7 +19,7 @@ use atomic_refcell::AtomicRefCell;
|
||||||
|
|
||||||
use byte_slice_cast::*;
|
use byte_slice_cast::*;
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
|
static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
|
||||||
gst::DebugCategory::new(
|
gst::DebugCategory::new(
|
||||||
|
|
|
@ -14,6 +14,7 @@ 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-audio = { package = "gstreamer-audio", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" }
|
||||||
csound = "0.1.8"
|
csound = "0.1.8"
|
||||||
byte-slice-cast = "1.0"
|
byte-slice-cast = "1.0"
|
||||||
|
once_cell = "1"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
gst-check = { package = "gstreamer-check", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" }
|
gst-check = { package = "gstreamer-check", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" }
|
||||||
|
|
|
@ -23,7 +23,7 @@ use byte_slice_cast::*;
|
||||||
|
|
||||||
use csound::{Csound, MessageType};
|
use csound::{Csound, MessageType};
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
|
static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
|
||||||
gst::DebugCategory::new(
|
gst::DebugCategory::new(
|
||||||
|
|
|
@ -14,6 +14,7 @@ gst-audio = { package = "gstreamer-audio", git = "https://gitlab.freedesktop.org
|
||||||
lewton = { version = "0.10", default-features = false }
|
lewton = { version = "0.10", default-features = false }
|
||||||
byte-slice-cast = "1.0"
|
byte-slice-cast = "1.0"
|
||||||
atomic_refcell = "0.1"
|
atomic_refcell = "0.1"
|
||||||
|
once_cell = "1"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
gst-check = { package = "gstreamer-check", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" }
|
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 byte_slice_cast::*;
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
struct State {
|
struct State {
|
||||||
header_bufs: (
|
header_bufs: (
|
||||||
|
|
|
@ -16,6 +16,7 @@ tokio = "1.0"
|
||||||
futures = "0.3"
|
futures = "0.3"
|
||||||
anyhow = "1.0"
|
anyhow = "1.0"
|
||||||
url = "2.3"
|
url = "2.3"
|
||||||
|
once_cell = "1"
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
name = "gstspotify"
|
name = "gstspotify"
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
use std::sync::{mpsc, Arc, Mutex, MutexGuard};
|
use std::sync::{mpsc, Arc, Mutex, MutexGuard};
|
||||||
|
|
||||||
use futures::future::{AbortHandle, Abortable, Aborted};
|
use futures::future::{AbortHandle, Abortable, Aborted};
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
use tokio::{runtime, task::JoinHandle};
|
use tokio::{runtime, task::JoinHandle};
|
||||||
|
|
||||||
use gst::glib;
|
use gst::glib;
|
||||||
|
|
|
@ -12,6 +12,7 @@ rust-version = "1.70"
|
||||||
url = "2"
|
url = "2"
|
||||||
gst = { package = "gstreamer", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" }
|
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-base = { package = "gstreamer-base", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" }
|
||||||
|
once_cell = "1"
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
name = "gstrsfile"
|
name = "gstrsfile"
|
||||||
|
|
|
@ -55,7 +55,7 @@ pub struct FileSink {
|
||||||
state: Mutex<State>,
|
state: Mutex<State>,
|
||||||
}
|
}
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
|
static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
|
||||||
gst::DebugCategory::new(
|
gst::DebugCategory::new(
|
||||||
"rsfilesink",
|
"rsfilesink",
|
||||||
|
|
|
@ -54,7 +54,7 @@ pub struct FileSrc {
|
||||||
state: Mutex<State>,
|
state: Mutex<State>,
|
||||||
}
|
}
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
|
static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
|
||||||
gst::DebugCategory::new(
|
gst::DebugCategory::new(
|
||||||
"rsfilesrc",
|
"rsfilesrc",
|
||||||
|
|
|
@ -29,7 +29,7 @@ use sodiumoxide::crypto::box_;
|
||||||
|
|
||||||
use std::sync::Mutex;
|
use std::sync::Mutex;
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
|
static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
|
||||||
gst::DebugCategory::new(
|
gst::DebugCategory::new(
|
||||||
"sodiumdecrypter",
|
"sodiumdecrypter",
|
||||||
|
|
|
@ -32,7 +32,7 @@ type BufferVec = SmallVec<[gst::Buffer; 16]>;
|
||||||
|
|
||||||
use std::sync::Mutex;
|
use std::sync::Mutex;
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
|
static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
|
||||||
gst::DebugCategory::new(
|
gst::DebugCategory::new(
|
||||||
"sodiumencrypter",
|
"sodiumencrypter",
|
||||||
|
|
|
@ -31,7 +31,7 @@ use std::path::PathBuf;
|
||||||
|
|
||||||
use pretty_assertions::assert_eq;
|
use pretty_assertions::assert_eq;
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
static SENDER_PUBLIC: Lazy<glib::Bytes> = Lazy::new(|| {
|
static SENDER_PUBLIC: Lazy<glib::Bytes> = Lazy::new(|| {
|
||||||
let public = [
|
let public = [
|
||||||
66, 248, 199, 74, 216, 55, 228, 116, 52, 17, 147, 56, 65, 130, 134, 148, 157, 153, 235,
|
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::glib;
|
||||||
use gst::prelude::*;
|
use gst::prelude::*;
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
use pretty_assertions::assert_eq;
|
use pretty_assertions::assert_eq;
|
||||||
|
|
||||||
|
|
|
@ -18,8 +18,8 @@
|
||||||
// SPDX-License-Identifier: LGPL-2.1-or-later
|
// SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
|
|
||||||
use gst::glib;
|
use gst::glib;
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
|
||||||
use gst::prelude::*;
|
use gst::prelude::*;
|
||||||
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
use std::env;
|
use std::env;
|
||||||
use std::sync::atomic::{AtomicU64, Ordering};
|
use std::sync::atomic::{AtomicU64, Ordering};
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
use gst::glib;
|
use gst::glib;
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
mod args;
|
mod args;
|
||||||
use args::*;
|
use args::*;
|
||||||
|
|
|
@ -14,7 +14,7 @@ use gst::prelude::*;
|
||||||
use gst::subclass::prelude::*;
|
use gst::subclass::prelude::*;
|
||||||
use gst::EventView;
|
use gst::EventView;
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
use gstthreadshare::runtime::executor::block_on_or_add_sub_task;
|
use gstthreadshare::runtime::executor::block_on_or_add_sub_task;
|
||||||
use gstthreadshare::runtime::{prelude::*, PadSink};
|
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 SYNC_MUTEX_ELEMENT_NAME: &str = "ts-standalone-sync-mutex-sink";
|
||||||
pub const TASK_ELEMENT_NAME: &str = "ts-standalone-task-sink";
|
pub const TASK_ELEMENT_NAME: &str = "ts-standalone-task-sink";
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
|
static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
|
||||||
gst::DebugCategory::new(
|
gst::DebugCategory::new(
|
||||||
"ts-standalone-sink",
|
"ts-standalone-sink",
|
||||||
|
|
|
@ -14,7 +14,7 @@ use gst::prelude::*;
|
||||||
use gst::subclass::prelude::*;
|
use gst::subclass::prelude::*;
|
||||||
use gst::EventView;
|
use gst::EventView;
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
use gstthreadshare::runtime::{prelude::*, PadSink};
|
use gstthreadshare::runtime::{prelude::*, PadSink};
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ use gst::prelude::*;
|
||||||
use gst::subclass::prelude::*;
|
use gst::subclass::prelude::*;
|
||||||
use gst::EventView;
|
use gst::EventView;
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
use gstthreadshare::runtime::prelude::*;
|
use gstthreadshare::runtime::prelude::*;
|
||||||
use gstthreadshare::runtime::{Context, PadSink, Task};
|
use gstthreadshare::runtime::{Context, PadSink, Task};
|
||||||
|
|
|
@ -13,7 +13,7 @@ use gst::glib;
|
||||||
use gst::prelude::*;
|
use gst::prelude::*;
|
||||||
use gst::subclass::prelude::*;
|
use gst::subclass::prelude::*;
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
use std::sync::Mutex;
|
use std::sync::Mutex;
|
||||||
use std::time::Duration;
|
use std::time::Duration;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
use gst::glib;
|
use gst::glib;
|
||||||
use gst::prelude::*;
|
use gst::prelude::*;
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
use std::net;
|
use std::net;
|
||||||
use std::net::{IpAddr, Ipv4Addr, SocketAddr};
|
use std::net::{IpAddr, Ipv4Addr, SocketAddr};
|
||||||
|
|
|
@ -26,7 +26,7 @@ use gst::glib;
|
||||||
use gst::prelude::*;
|
use gst::prelude::*;
|
||||||
use gst::subclass::prelude::*;
|
use gst::subclass::prelude::*;
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
use std::sync::Mutex;
|
use std::sync::Mutex;
|
||||||
use std::time::Duration;
|
use std::time::Duration;
|
||||||
|
|
|
@ -13,7 +13,7 @@ use gst::glib;
|
||||||
use gst::prelude::*;
|
use gst::prelude::*;
|
||||||
use gst::subclass::prelude::*;
|
use gst::subclass::prelude::*;
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
use std::mem::size_of;
|
use std::mem::size_of;
|
||||||
use std::sync::Mutex;
|
use std::sync::Mutex;
|
||||||
|
|
|
@ -21,7 +21,7 @@ use futures::future::{self, abortable, AbortHandle};
|
||||||
|
|
||||||
use gst::prelude::*;
|
use gst::prelude::*;
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
use std::collections::VecDeque;
|
use std::collections::VecDeque;
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
|
|
|
@ -25,7 +25,7 @@ use gst::glib;
|
||||||
use gst::prelude::*;
|
use gst::prelude::*;
|
||||||
use gst::subclass::prelude::*;
|
use gst::subclass::prelude::*;
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::sync::{Arc, Mutex};
|
use std::sync::{Arc, Mutex};
|
||||||
|
|
|
@ -26,7 +26,7 @@ use gst::prelude::*;
|
||||||
use gst::subclass::prelude::*;
|
use gst::subclass::prelude::*;
|
||||||
use gst_rtp::RTPBuffer;
|
use gst_rtp::RTPBuffer;
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
use std::cmp::Ordering;
|
use std::cmp::Ordering;
|
||||||
use std::collections::{BTreeSet, VecDeque};
|
use std::collections::{BTreeSet, VecDeque};
|
||||||
|
|
|
@ -25,7 +25,7 @@ use gst::glib;
|
||||||
use gst::prelude::*;
|
use gst::prelude::*;
|
||||||
use gst::subclass::prelude::*;
|
use gst::subclass::prelude::*;
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
use std::collections::{HashMap, VecDeque};
|
use std::collections::{HashMap, VecDeque};
|
||||||
use std::sync::{Arc, Weak};
|
use std::sync::{Arc, Weak};
|
||||||
|
|
|
@ -25,7 +25,7 @@ use gst::glib;
|
||||||
use gst::prelude::*;
|
use gst::prelude::*;
|
||||||
use gst::subclass::prelude::*;
|
use gst::subclass::prelude::*;
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
use std::collections::VecDeque;
|
use std::collections::VecDeque;
|
||||||
use std::sync::Mutex;
|
use std::sync::Mutex;
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
use futures::prelude::*;
|
use futures::prelude::*;
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::io;
|
use std::io;
|
||||||
|
|
|
@ -44,7 +44,7 @@ pub mod prelude {
|
||||||
pub use super::task::TaskImpl;
|
pub use super::task::TaskImpl;
|
||||||
}
|
}
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
static RUNTIME_CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
|
static RUNTIME_CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
|
||||||
gst::DebugCategory::new(
|
gst::DebugCategory::new(
|
||||||
|
|
|
@ -23,7 +23,7 @@ use futures::future::BoxFuture;
|
||||||
use gst::glib;
|
use gst::glib;
|
||||||
use gst::prelude::*;
|
use gst::prelude::*;
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
use std::error;
|
use std::error;
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
|
|
|
@ -25,7 +25,7 @@ use gst::glib;
|
||||||
use gst::prelude::*;
|
use gst::prelude::*;
|
||||||
use gst::subclass::prelude::*;
|
use gst::subclass::prelude::*;
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
use std::io;
|
use std::io;
|
||||||
use std::net::{IpAddr, SocketAddr, TcpStream};
|
use std::net::{IpAddr, SocketAddr, TcpStream};
|
||||||
|
|
|
@ -26,7 +26,7 @@ use gst::subclass::prelude::*;
|
||||||
use gst::EventView;
|
use gst::EventView;
|
||||||
use gst::{element_error, error_msg};
|
use gst::{element_error, error_msg};
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
use crate::runtime::executor::block_on_or_add_sub_task;
|
use crate::runtime::executor::block_on_or_add_sub_task;
|
||||||
use crate::runtime::prelude::*;
|
use crate::runtime::prelude::*;
|
||||||
|
|
|
@ -25,7 +25,7 @@ use gst::prelude::*;
|
||||||
use gst::subclass::prelude::*;
|
use gst::subclass::prelude::*;
|
||||||
use gst_net::*;
|
use gst_net::*;
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
use std::i32;
|
use std::i32;
|
||||||
use std::io;
|
use std::io;
|
||||||
|
|
|
@ -21,7 +21,7 @@ use gst::prelude::*;
|
||||||
|
|
||||||
use std::sync::mpsc;
|
use std::sync::mpsc;
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
|
static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
|
||||||
gst::DebugCategory::new(
|
gst::DebugCategory::new(
|
||||||
|
|
|
@ -29,7 +29,7 @@ use gst::prelude::*;
|
||||||
use gst::subclass::prelude::*;
|
use gst::subclass::prelude::*;
|
||||||
use gst::EventView;
|
use gst::EventView;
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
use std::sync::atomic::{AtomicBool, Ordering};
|
use std::sync::atomic::{AtomicBool, Ordering};
|
||||||
use std::sync::Mutex;
|
use std::sync::Mutex;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
use gst::glib;
|
use gst::glib;
|
||||||
use gst::prelude::*;
|
use gst::prelude::*;
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
use std::sync::mpsc;
|
use std::sync::mpsc;
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,7 @@ flavors = { git = "https://github.com/rust-av/flavors" }
|
||||||
muldiv = "1.0"
|
muldiv = "1.0"
|
||||||
byteorder = "1.0"
|
byteorder = "1.0"
|
||||||
smallvec = "1.0"
|
smallvec = "1.0"
|
||||||
|
once_cell = "1"
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
name = "gstrsflv"
|
name = "gstrsflv"
|
||||||
|
|
|
@ -21,7 +21,7 @@ use gst::subclass::prelude::*;
|
||||||
|
|
||||||
use num_rational::Rational32;
|
use num_rational::Rational32;
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
use smallvec::SmallVec;
|
use smallvec::SmallVec;
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,7 @@ 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-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-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"] }
|
gst-pbutils = { package = "gstreamer-pbutils", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs", features = ["v1_18"] }
|
||||||
|
once_cell = "1"
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
name = "gstfmp4"
|
name = "gstfmp4"
|
||||||
|
|
|
@ -16,7 +16,7 @@ use std::collections::VecDeque;
|
||||||
use std::mem;
|
use std::mem;
|
||||||
use std::sync::Mutex;
|
use std::sync::Mutex;
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
use super::boxes;
|
use super::boxes;
|
||||||
use super::Buffer;
|
use super::Buffer;
|
||||||
|
|
|
@ -15,6 +15,7 @@ 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-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-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"] }
|
gst-pbutils = { package = "gstreamer-pbutils", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs", features = ["v1_18"] }
|
||||||
|
once_cell = "1"
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
name = "gstmp4"
|
name = "gstmp4"
|
||||||
|
|
|
@ -15,7 +15,7 @@ use gst_base::subclass::prelude::*;
|
||||||
use std::collections::VecDeque;
|
use std::collections::VecDeque;
|
||||||
use std::sync::Mutex;
|
use std::sync::Mutex;
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
use super::boxes;
|
use super::boxes;
|
||||||
|
|
||||||
|
|
|
@ -31,6 +31,7 @@ serde = "1"
|
||||||
serde_derive = "1"
|
serde_derive = "1"
|
||||||
serde_json = "1"
|
serde_json = "1"
|
||||||
url = "2"
|
url = "2"
|
||||||
|
once_cell = "1"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
chrono = { version = "0.4", features = [ "alloc" ] }
|
chrono = { version = "0.4", features = [ "alloc" ] }
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
// SPDX-License-Identifier: MPL-2.0
|
// SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
use futures::future;
|
use futures::future;
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
use std::io::Write;
|
use std::io::Write;
|
||||||
use std::str::FromStr;
|
use std::str::FromStr;
|
||||||
use std::sync::mpsc::{self, Receiver, SyncSender};
|
use std::sync::mpsc::{self, Receiver, SyncSender};
|
||||||
|
|
|
@ -26,7 +26,7 @@ use aws_sdk_s3::{
|
||||||
};
|
};
|
||||||
|
|
||||||
use futures::future;
|
use futures::future;
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::convert::From;
|
use std::convert::From;
|
||||||
use std::sync::Mutex;
|
use std::sync::Mutex;
|
||||||
|
|
|
@ -21,7 +21,7 @@ use aws_sdk_s3::{
|
||||||
};
|
};
|
||||||
|
|
||||||
use futures::future;
|
use futures::future;
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::convert::From;
|
use std::convert::From;
|
||||||
use std::sync::Mutex;
|
use std::sync::Mutex;
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
use bytes::Bytes;
|
use bytes::Bytes;
|
||||||
use futures::future;
|
use futures::future;
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
use std::sync::Mutex;
|
use std::sync::Mutex;
|
||||||
use std::time::Duration;
|
use std::time::Duration;
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ use aws_types::sdk_config::SdkConfig;
|
||||||
|
|
||||||
use bytes::{buf::BufMut, Bytes, BytesMut};
|
use bytes::{buf::BufMut, Bytes, BytesMut};
|
||||||
use futures::{future, Future};
|
use futures::{future, Future};
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
use std::sync::Mutex;
|
use std::sync::Mutex;
|
||||||
use std::time::Duration;
|
use std::time::Duration;
|
||||||
use tokio::runtime;
|
use tokio::runtime;
|
||||||
|
|
|
@ -11,7 +11,7 @@ use gst::subclass::prelude::*;
|
||||||
use gst::{element_imp_error, error_msg};
|
use gst::{element_imp_error, error_msg};
|
||||||
use serde_derive::Deserialize;
|
use serde_derive::Deserialize;
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
use std::sync::Mutex;
|
use std::sync::Mutex;
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@ use tokio::{runtime, sync::broadcast, task};
|
||||||
use std::collections::{BTreeSet, VecDeque};
|
use std::collections::{BTreeSet, VecDeque};
|
||||||
use std::sync::{Arc, Mutex};
|
use std::sync::{Arc, Mutex};
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
use super::transcribe::{TranscriberSettings, TranscriberStream, TranscriptEvent, TranscriptItem};
|
use super::transcribe::{TranscriberSettings, TranscriberStream, TranscriptEvent, TranscriptItem};
|
||||||
use super::translate::{TranslateLoop, TranslatedItem};
|
use super::translate::{TranslateLoop, TranslatedItem};
|
||||||
|
|
|
@ -13,7 +13,7 @@ mod imp;
|
||||||
mod transcribe;
|
mod transcribe;
|
||||||
mod translate;
|
mod translate;
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
|
static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
|
||||||
gst::DebugCategory::new(
|
gst::DebugCategory::new(
|
||||||
|
|
|
@ -12,10 +12,10 @@ use crate::HlsSink3PlaylistType;
|
||||||
use chrono::{DateTime, Duration, Utc};
|
use chrono::{DateTime, Duration, Utc};
|
||||||
use gio::prelude::*;
|
use gio::prelude::*;
|
||||||
use gst::glib;
|
use gst::glib;
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
|
||||||
use gst::prelude::*;
|
use gst::prelude::*;
|
||||||
use gst::subclass::prelude::*;
|
use gst::subclass::prelude::*;
|
||||||
use m3u8_rs::{MediaPlaylist, MediaPlaylistType, MediaSegment};
|
use m3u8_rs::{MediaPlaylist, MediaPlaylistType, MediaSegment};
|
||||||
|
use once_cell::sync::Lazy;
|
||||||
use std::fs;
|
use std::fs;
|
||||||
use std::io::Write;
|
use std::io::Write;
|
||||||
use std::path;
|
use std::path;
|
||||||
|
|
|
@ -7,9 +7,9 @@
|
||||||
// SPDX-License-Identifier: MPL-2.0
|
// SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
use gio::prelude::*;
|
use gio::prelude::*;
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
|
||||||
use gst::prelude::*;
|
use gst::prelude::*;
|
||||||
use gsthlssink3::HlsSink3PlaylistType;
|
use gsthlssink3::HlsSink3PlaylistType;
|
||||||
|
use once_cell::sync::Lazy;
|
||||||
use std::io::Write;
|
use std::io::Write;
|
||||||
use std::sync::{mpsc, Arc, Mutex};
|
use std::sync::{mpsc, Arc, Mutex};
|
||||||
use std::time::Duration;
|
use std::time::Duration;
|
||||||
|
|
|
@ -23,6 +23,7 @@ libloading = "0.8"
|
||||||
quick-xml = "0.31"
|
quick-xml = "0.31"
|
||||||
smallvec = { version = "1.11", features = ["const_generics"] }
|
smallvec = { version = "1.11", features = ["const_generics"] }
|
||||||
thiserror = "1.0"
|
thiserror = "1.0"
|
||||||
|
once_cell = "1"
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
gst-plugin-version-helper = { path = "../../version-helper" }
|
gst-plugin-version-helper = { path = "../../version-helper" }
|
||||||
|
|
|
@ -3,13 +3,12 @@
|
||||||
use gst::prelude::*;
|
use gst::prelude::*;
|
||||||
use gst::subclass::prelude::*;
|
use gst::subclass::prelude::*;
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::OnceCell;
|
use std::{
|
||||||
|
sync::{atomic, Mutex, OnceLock},
|
||||||
|
thread,
|
||||||
|
};
|
||||||
|
|
||||||
use std::sync::atomic;
|
use once_cell::sync::Lazy;
|
||||||
use std::sync::Mutex;
|
|
||||||
use std::thread;
|
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
|
||||||
|
|
||||||
use crate::ndi;
|
use crate::ndi;
|
||||||
|
|
||||||
|
@ -190,7 +189,7 @@ impl DeviceProvider {
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct Device {
|
pub struct Device {
|
||||||
source: OnceCell<ndi::Source<'static>>,
|
source: OnceLock<ndi::Source<'static>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[glib::object_subclass]
|
#[glib::object_subclass]
|
||||||
|
@ -201,7 +200,7 @@ impl ObjectSubclass for Device {
|
||||||
|
|
||||||
fn new() -> Self {
|
fn new() -> Self {
|
||||||
Self {
|
Self {
|
||||||
source: OnceCell::new(),
|
source: OnceLock::new(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,7 +30,7 @@ mod ndi_cc_meta;
|
||||||
#[cfg(feature = "doc")]
|
#[cfg(feature = "doc")]
|
||||||
use gst::prelude::*;
|
use gst::prelude::*;
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy, glib::Enum, Default)]
|
#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy, glib::Enum, Default)]
|
||||||
#[repr(u32)]
|
#[repr(u32)]
|
||||||
|
|
|
@ -9,9 +9,9 @@ use anyhow::{bail, Result};
|
||||||
use data_encoding::BASE64;
|
use data_encoding::BASE64;
|
||||||
use smallvec::SmallVec;
|
use smallvec::SmallVec;
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
|
||||||
use gst::glib::translate::IntoGlib;
|
use gst::glib::translate::IntoGlib;
|
||||||
use gst_video::{VideoAncillary, VideoAncillaryDID16, VideoVBIEncoder, VideoVBIParser};
|
use gst_video::{VideoAncillary, VideoAncillaryDID16, VideoVBIEncoder, VideoVBIParser};
|
||||||
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
use std::ffi::CString;
|
use std::ffi::CString;
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ use gst_base::subclass::prelude::*;
|
||||||
|
|
||||||
use std::sync::Mutex;
|
use std::sync::Mutex;
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
use crate::ndi::SendInstance;
|
use crate::ndi::SendInstance;
|
||||||
use crate::ndi_cc_meta::NDICCMetaEncoder;
|
use crate::ndi_cc_meta::NDICCMetaEncoder;
|
||||||
|
|
|
@ -7,7 +7,7 @@ use gst::subclass::prelude::*;
|
||||||
use gst_base::prelude::*;
|
use gst_base::prelude::*;
|
||||||
use gst_base::subclass::prelude::*;
|
use gst_base::subclass::prelude::*;
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
use std::mem;
|
use std::mem;
|
||||||
use std::sync::Mutex;
|
use std::sync::Mutex;
|
||||||
|
|
|
@ -53,7 +53,7 @@ impl fmt::Debug for NdiSinkAudioMeta {
|
||||||
|
|
||||||
mod imp {
|
mod imp {
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
use std::mem;
|
use std::mem;
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ use gst_base::subclass::prelude::*;
|
||||||
use std::sync::Mutex;
|
use std::sync::Mutex;
|
||||||
use std::u32;
|
use std::u32;
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
use crate::ndisrcmeta::NdiSrcMeta;
|
use crate::ndisrcmeta::NdiSrcMeta;
|
||||||
use crate::ndisys;
|
use crate::ndisys;
|
||||||
|
|
|
@ -8,7 +8,7 @@ use std::sync::{Arc, Condvar, Mutex, Weak};
|
||||||
use std::thread;
|
use std::thread;
|
||||||
use std::time;
|
use std::time;
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
use crate::ndi::*;
|
use crate::ndi::*;
|
||||||
use crate::ndisrcmeta::Buffer;
|
use crate::ndisrcmeta::Buffer;
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
// SPDX-License-Identifier: MPL-2.0
|
// SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
use atomic_refcell::AtomicRefCell;
|
use atomic_refcell::AtomicRefCell;
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
|
||||||
use gst::prelude::*;
|
use gst::prelude::*;
|
||||||
use gst::subclass::prelude::*;
|
use gst::subclass::prelude::*;
|
||||||
use gst_video::prelude::*;
|
use gst_video::prelude::*;
|
||||||
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
use std::{cmp, collections::VecDeque, sync::Mutex};
|
use std::{cmp, collections::VecDeque, sync::Mutex};
|
||||||
|
|
||||||
|
|
|
@ -85,7 +85,7 @@ mod imp {
|
||||||
|
|
||||||
use super::Buffer;
|
use super::Buffer;
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
use std::mem;
|
use std::mem;
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
clippy::missing_safety_doc
|
clippy::missing_safety_doc
|
||||||
)]
|
)]
|
||||||
|
|
||||||
use glib::once_cell::sync::OnceCell;
|
use once_cell::sync::OnceCell;
|
||||||
|
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
use libloading::os::unix::{Library, Symbol};
|
use libloading::os::unix::{Library, Symbol};
|
||||||
|
|
|
@ -19,6 +19,7 @@ cairo-rs = { git = "https://github.com/gtk-rs/gtk-rs-core", features=["use_glib"
|
||||||
pango = { git = "https://github.com/gtk-rs/gtk-rs-core" }
|
pango = { git = "https://github.com/gtk-rs/gtk-rs-core" }
|
||||||
pangocairo = { git = "https://github.com/gtk-rs/gtk-rs-core" }
|
pangocairo = { git = "https://github.com/gtk-rs/gtk-rs-core" }
|
||||||
xmltree = "0.10"
|
xmltree = "0.10"
|
||||||
|
once_cell = "1"
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
name = "gstrsonvif"
|
name = "gstrsonvif"
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
* Since: plugins-rs-0.9.0
|
* Since: plugins-rs-0.9.0
|
||||||
*/
|
*/
|
||||||
use gst::glib;
|
use gst::glib;
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
mod onvifmetadatacombiner;
|
mod onvifmetadatacombiner;
|
||||||
mod onvifmetadatadepay;
|
mod onvifmetadatadepay;
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
use gst::glib;
|
use gst::glib;
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
|
||||||
use gst::prelude::*;
|
use gst::prelude::*;
|
||||||
use gst::subclass::prelude::*;
|
use gst::subclass::prelude::*;
|
||||||
use gst_base::prelude::*;
|
use gst_base::prelude::*;
|
||||||
use gst_base::subclass::prelude::*;
|
use gst_base::subclass::prelude::*;
|
||||||
use gst_base::AGGREGATOR_FLOW_NEED_DATA;
|
use gst_base::AGGREGATOR_FLOW_NEED_DATA;
|
||||||
|
use once_cell::sync::Lazy;
|
||||||
use std::sync::Mutex;
|
use std::sync::Mutex;
|
||||||
|
|
||||||
#[derive(Default)]
|
#[derive(Default)]
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
use gst::glib;
|
use gst::glib;
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
|
||||||
use gst::subclass::prelude::*;
|
use gst::subclass::prelude::*;
|
||||||
use gst_rtp::prelude::*;
|
use gst_rtp::prelude::*;
|
||||||
use gst_rtp::subclass::prelude::*;
|
use gst_rtp::subclass::prelude::*;
|
||||||
|
use once_cell::sync::Lazy;
|
||||||
use std::sync::Mutex;
|
use std::sync::Mutex;
|
||||||
|
|
||||||
#[derive(Default)]
|
#[derive(Default)]
|
||||||
|
|
|
@ -4,7 +4,7 @@ use gst::subclass::prelude::*;
|
||||||
use gst_video::prelude::*;
|
use gst_video::prelude::*;
|
||||||
use pango::prelude::*;
|
use pango::prelude::*;
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
use std::collections::HashSet;
|
use std::collections::HashSet;
|
||||||
use std::sync::Mutex;
|
use std::sync::Mutex;
|
||||||
|
|
|
@ -10,7 +10,7 @@ use gst::glib;
|
||||||
use gst::prelude::*;
|
use gst::prelude::*;
|
||||||
use gst::subclass::prelude::*;
|
use gst::subclass::prelude::*;
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
use std::collections::BTreeMap;
|
use std::collections::BTreeMap;
|
||||||
use std::sync::{Condvar, Mutex};
|
use std::sync::{Condvar, Mutex};
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
use gst::glib;
|
use gst::glib;
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
|
||||||
use gst::subclass::prelude::*;
|
use gst::subclass::prelude::*;
|
||||||
use gst_rtp::prelude::*;
|
use gst_rtp::prelude::*;
|
||||||
use gst_rtp::subclass::prelude::*;
|
use gst_rtp::subclass::prelude::*;
|
||||||
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
#[derive(Default)]
|
#[derive(Default)]
|
||||||
pub struct OnvifMetadataPay {}
|
pub struct OnvifMetadataPay {}
|
||||||
|
|
|
@ -12,6 +12,7 @@ rust-version = "1.70"
|
||||||
gst = { package = "gstreamer", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" }
|
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-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" }
|
gst-rtp = { package = "gstreamer-rtp", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" }
|
||||||
|
once_cell = "1"
|
||||||
raptorq = "1.7"
|
raptorq = "1.7"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
|
|
|
@ -11,7 +11,7 @@ use gst::subclass::prelude::*;
|
||||||
|
|
||||||
use gst_rtp::RTPBuffer;
|
use gst_rtp::RTPBuffer;
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
use std::collections::BTreeMap;
|
use std::collections::BTreeMap;
|
||||||
use std::iter;
|
use std::iter;
|
||||||
|
|
|
@ -12,7 +12,7 @@ use gst::subclass::prelude::*;
|
||||||
use gst_rtp::rtp_buffer::*;
|
use gst_rtp::rtp_buffer::*;
|
||||||
use gst_rtp::RTPBuffer;
|
use gst_rtp::RTPBuffer;
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
use std::collections::HashSet;
|
use std::collections::HashSet;
|
||||||
use std::sync::{mpsc, Mutex};
|
use std::sync::{mpsc, Mutex};
|
||||||
|
|
|
@ -17,6 +17,7 @@ mime = "0.3"
|
||||||
gst = { package = "gstreamer", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" }
|
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-base = { package = "gstreamer-base", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" }
|
||||||
tokio = { version = "1.0", default-features = false, features = ["time", "rt-multi-thread"] }
|
tokio = { version = "1.0", default-features = false, features = ["time", "rt-multi-thread"] }
|
||||||
|
once_cell = "1"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
hyper = { version = "0.14", features = ["server"] }
|
hyper = { version = "0.14", features = ["server"] }
|
||||||
|
|
|
@ -17,7 +17,7 @@ use reqwest::{Client, Response, StatusCode};
|
||||||
use tokio::runtime;
|
use tokio::runtime;
|
||||||
use url::Url;
|
use url::Url;
|
||||||
|
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
use gst::glib;
|
use gst::glib;
|
||||||
use gst::prelude::*;
|
use gst::prelude::*;
|
||||||
|
|
|
@ -13,6 +13,7 @@ bitstream-io = "2.0"
|
||||||
gst = { package = "gstreamer", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs", features = ["v1_20"] }
|
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"]}
|
gst-rtp = { package = "gstreamer-rtp", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs", features = ["v1_20"]}
|
||||||
chrono = { version = "0.4", default-features = false }
|
chrono = { version = "0.4", default-features = false }
|
||||||
|
once_cell = "1"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
gst-check = { package = "gstreamer-check", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs", features = ["v1_20"] }
|
gst-check = { package = "gstreamer-check", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs", features = ["v1_20"] }
|
||||||
|
|
|
@ -232,7 +232,7 @@ impl From<ObuType> for u8 {
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
use bitstream_io::{BigEndian, BitRead, BitReader};
|
use bitstream_io::{BigEndian, BitRead, BitReader};
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
use std::io::Cursor;
|
use std::io::Cursor;
|
||||||
|
|
||||||
#[allow(clippy::type_complexity)]
|
#[allow(clippy::type_complexity)]
|
||||||
|
|
|
@ -17,7 +17,7 @@ use std::{
|
||||||
};
|
};
|
||||||
|
|
||||||
use bitstream_io::{BitReader, BitWriter};
|
use bitstream_io::{BitReader, BitWriter};
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
use crate::av1::common::{
|
use crate::av1::common::{
|
||||||
err_flow, leb128_size, parse_leb128, write_leb128, AggregationHeader, ObuType, SizedObu,
|
err_flow, leb128_size, parse_leb128, write_leb128, AggregationHeader, ObuType, SizedObu,
|
||||||
|
|
|
@ -17,7 +17,7 @@ use std::{
|
||||||
};
|
};
|
||||||
|
|
||||||
use bitstream_io::{BitReader, BitWriter};
|
use bitstream_io::{BitReader, BitWriter};
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
use crate::av1::common::{
|
use crate::av1::common::{
|
||||||
err_flow, leb128_size, write_leb128, ObuType, SizedObu, CLOCK_RATE, ENDIANNESS,
|
err_flow, leb128_size, write_leb128, ObuType, SizedObu, CLOCK_RATE, ENDIANNESS,
|
||||||
|
|
|
@ -18,8 +18,8 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
use chrono::Duration;
|
use chrono::Duration;
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
|
||||||
use gst::{glib, prelude::*, subclass::prelude::*};
|
use gst::{glib, prelude::*, subclass::prelude::*};
|
||||||
|
use once_cell::sync::Lazy;
|
||||||
use std::{
|
use std::{
|
||||||
collections::{BTreeMap, VecDeque},
|
collections::{BTreeMap, VecDeque},
|
||||||
fmt,
|
fmt,
|
||||||
|
|
|
@ -57,6 +57,7 @@ livekit-api = { version = "0.3", default-features = false, features = ["signal-c
|
||||||
warp = "0.3"
|
warp = "0.3"
|
||||||
crossbeam-channel = "0.5"
|
crossbeam-channel = "0.5"
|
||||||
rand = "0.8"
|
rand = "0.8"
|
||||||
|
once_cell = "1"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
tracing = { version = "0.1", features = ["log"] }
|
tracing = { version = "0.1", features = ["log"] }
|
||||||
|
|
|
@ -8,9 +8,9 @@ use async_tungstenite::tungstenite::Message as WsMessage;
|
||||||
use futures::channel::mpsc;
|
use futures::channel::mpsc;
|
||||||
use futures::prelude::*;
|
use futures::prelude::*;
|
||||||
use gst::glib;
|
use gst::glib;
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
|
||||||
use gst::glib::prelude::*;
|
use gst::glib::prelude::*;
|
||||||
use gst::subclass::prelude::*;
|
use gst::subclass::prelude::*;
|
||||||
|
use once_cell::sync::Lazy;
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
use std::sync::Mutex;
|
use std::sync::Mutex;
|
||||||
use tokio::task;
|
use tokio::task;
|
||||||
|
|
|
@ -9,11 +9,11 @@ use futures::channel::mpsc;
|
||||||
use futures::sink::SinkExt;
|
use futures::sink::SinkExt;
|
||||||
use futures::stream::StreamExt;
|
use futures::stream::StreamExt;
|
||||||
use gst::glib;
|
use gst::glib;
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
|
||||||
use gst::glib::Properties;
|
use gst::glib::Properties;
|
||||||
use gst::prelude::*;
|
use gst::prelude::*;
|
||||||
use gst::subclass::prelude::*;
|
use gst::subclass::prelude::*;
|
||||||
use http::Uri;
|
use http::Uri;
|
||||||
|
use once_cell::sync::Lazy;
|
||||||
use rand::prelude::*;
|
use rand::prelude::*;
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use std::ops::ControlFlow;
|
use std::ops::ControlFlow;
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
* Since: plugins-rs-0.9
|
* Since: plugins-rs-0.9
|
||||||
*/
|
*/
|
||||||
use gst::glib;
|
use gst::glib;
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
use tokio::runtime;
|
use tokio::runtime;
|
||||||
|
|
||||||
mod aws_kvs_signaller;
|
mod aws_kvs_signaller;
|
||||||
|
|
|
@ -8,9 +8,9 @@ use crate::RUNTIME;
|
||||||
use anyhow::anyhow;
|
use anyhow::anyhow;
|
||||||
use futures::executor::block_on;
|
use futures::executor::block_on;
|
||||||
use gst::glib;
|
use gst::glib;
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
|
||||||
use gst::prelude::*;
|
use gst::prelude::*;
|
||||||
use gst::subclass::prelude::*;
|
use gst::subclass::prelude::*;
|
||||||
|
use once_cell::sync::Lazy;
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::sync::{Arc, Mutex};
|
use std::sync::{Arc, Mutex};
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
use gst::glib;
|
use gst::glib;
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
|
||||||
use gst::glib::subclass::*;
|
use gst::glib::subclass::*;
|
||||||
use gst::prelude::*;
|
use gst::prelude::*;
|
||||||
use gst::subclass::prelude::*;
|
use gst::subclass::prelude::*;
|
||||||
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
#[derive(Copy, Clone)]
|
#[derive(Copy, Clone)]
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
|
|
|
@ -8,10 +8,10 @@ use async_tungstenite::tungstenite::Message as WsMessage;
|
||||||
use futures::channel::mpsc;
|
use futures::channel::mpsc;
|
||||||
use futures::prelude::*;
|
use futures::prelude::*;
|
||||||
use gst::glib;
|
use gst::glib;
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
|
||||||
use gst::glib::prelude::*;
|
use gst::glib::prelude::*;
|
||||||
use gst::subclass::prelude::*;
|
use gst::subclass::prelude::*;
|
||||||
use gst_plugin_webrtc_protocol as p;
|
use gst_plugin_webrtc_protocol as p;
|
||||||
|
use once_cell::sync::Lazy;
|
||||||
use std::collections::HashSet;
|
use std::collections::HashSet;
|
||||||
use std::ops::ControlFlow;
|
use std::ops::ControlFlow;
|
||||||
use std::str::FromStr;
|
use std::str::FromStr;
|
||||||
|
|
|
@ -8,7 +8,7 @@ use gst::glib;
|
||||||
*
|
*
|
||||||
* Interface that WebRTC elements can implement their own protocol with.
|
* Interface that WebRTC elements can implement their own protocol with.
|
||||||
*/
|
*/
|
||||||
use gst::glib::once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
// Expose traits and objects from the module itself so it exactly looks like
|
// Expose traits and objects from the module itself so it exactly looks like
|
||||||
// generated bindings
|
// generated bindings
|
||||||
pub use imp::WebRTCSignallerRole;
|
pub use imp::WebRTCSignallerRole;
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue