mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-11-26 12:36:14 -05:00
stop using sync::ONCE_INIT
This addressed a deprecation warning on nightly (will be in Rust 1.38). Use parking_lot instead, which in theory is faster (although I doubt it's significant here).
This commit is contained in:
@@ -36,9 +36,8 @@ use lazy_static::lazy_static;
|
||||
use log::{debug, info, warn};
|
||||
use std::ffi::CString;
|
||||
use std::result::Result;
|
||||
use std::sync;
|
||||
|
||||
static START: sync::Once = sync::ONCE_INIT;
|
||||
static START: parking_lot::Once = parking_lot::Once::new();
|
||||
|
||||
lazy_static! {
|
||||
pub static ref FFMPEG: Ffmpeg = Ffmpeg::new();
|
||||
|
||||
Reference in New Issue
Block a user