diff options
Diffstat (limited to 'generic/threadshare/src/inputselector/imp.rs')
-rw-r--r-- | generic/threadshare/src/inputselector/imp.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/generic/threadshare/src/inputselector/imp.rs b/generic/threadshare/src/inputselector/imp.rs index b7c6c8c33..fe861b84e 100644 --- a/generic/threadshare/src/inputselector/imp.rs +++ b/generic/threadshare/src/inputselector/imp.rs @@ -28,7 +28,7 @@ use gst::prelude::*; use gst::subclass::prelude::*; use gst::{gst_debug, gst_log, gst_trace}; -use lazy_static::lazy_static; +use once_cell::sync::Lazy; use std::collections::HashMap; use std::sync::{Arc, Mutex}; @@ -407,13 +407,13 @@ pub struct InputSelector { pads: Mutex<Pads>, } -lazy_static! { - static ref CAT: gst::DebugCategory = gst::DebugCategory::new( +static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| { + gst::DebugCategory::new( "ts-input-selector", gst::DebugColorFlags::empty(), Some("Thread-sharing input selector"), - ); -} + ) +}); impl InputSelector { fn unprepare(&self, element: &super::InputSelector) -> Result<(), ()> { |