feat: 支持树莓派 v4l2m2m 编码器探测

This commit is contained in:
mofeng
2026-02-09 14:54:46 +08:00
parent 8b17a0c48b
commit f8a031c90c
6 changed files with 85 additions and 12 deletions

View File

@@ -712,10 +712,13 @@ fn init_logging(level: LogLevel, verbose_count: u8) {
let env_filter =
tracing_subscriber::EnvFilter::try_from_default_env().unwrap_or_else(|_| filter.into());
tracing_subscriber::registry()
if let Err(err) = tracing_subscriber::registry()
.with(env_filter)
.with(tracing_subscriber::fmt::layer())
.init();
.try_init()
{
eprintln!("failed to initialize tracing: {}", err);
}
}
/// Get the application data directory