use parking_lot::Once in ffmpeg

I'm getting deprecation warnings for std::sync::ONCE_INIT, and I'm
not sure when std::sync::Once::new() became a const fn. Just as easy to
switch to parking_lot.
This commit is contained in:
Scott Lamb
2019-12-28 08:03:05 -06:00
parent 154d0c30c0
commit e8a00d4639
3 changed files with 4 additions and 2 deletions

View File

@@ -12,6 +12,7 @@ path = "lib.rs"
[dependencies]
libc = "0.2"
log = { version = "0.4", features = ["release_max_level_info"] }
parking_lot = { version = "0.9", features = [] }
[build-dependencies]
cc = "1.0"