MCPcopy Create free account
hub / github.com/RustOtomeLab/RustEng / ensure_ffmpeg_initialized

Function ensure_ffmpeg_initialized

src/media/video_player.rs:29–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27static FFMPEG_INIT: Once = Once::new();
28
29fn ensure_ffmpeg_initialized() {
30 FFMPEG_INIT.call_once(|| {
31 if let Err(e) = ffmpeg::init() {
32 eprintln!("ffmpeg init failed: {e}");
33 }
34 ffmpeg::util::log::set_level(ffmpeg::util::log::Level::Error);
35 });
36}
37
38pub(crate) struct VideoContext {
39 video_player: Option<VideoPlayer>,

Callers 1

playMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected