Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2020-11-22 17:24:55 +0300
committerSebastian Dröge <sebastian@centricular.com>2020-11-23 11:28:33 +0300
commit1c9c22df0c6a6aeb7071f52efbba03d8f1d9a2cd (patch)
treeec5781a5940259a9f443fa5d12424b54a9cea220 /generic/threadshare/src/queue
parent684f52b7d4b262079d819bf61ddc287ae325151c (diff)
generic: Update to 2018 edition
Diffstat (limited to 'generic/threadshare/src/queue')
-rw-r--r--generic/threadshare/src/queue/imp.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/generic/threadshare/src/queue/imp.rs b/generic/threadshare/src/queue/imp.rs
index fb9ee8f22..9d53b7a59 100644
--- a/generic/threadshare/src/queue/imp.rs
+++ b/generic/threadshare/src/queue/imp.rs
@@ -28,7 +28,7 @@ use gst::prelude::*;
use gst::subclass::prelude::*;
use gst::{gst_debug, gst_element_error, gst_error, gst_error_msg, gst_log, gst_trace};
-use lazy_static::lazy_static;
+use once_cell::sync::Lazy;
use std::collections::VecDeque;
use std::sync::Mutex as StdMutex;
@@ -513,13 +513,13 @@ pub struct Queue {
settings: StdMutex<Settings>,
}
-lazy_static! {
- static ref CAT: gst::DebugCategory = gst::DebugCategory::new(
+static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
+ gst::DebugCategory::new(
"ts-queue",
gst::DebugColorFlags::empty(),
Some("Thread-sharing queue"),
- );
-}
+ )
+});
impl Queue {
/* Try transfering all the items from the pending queue to the DataQueue, then