global HW_CODEC_CONFIG

This commit is contained in:
csf
2022-09-16 19:41:04 +08:00
parent 723f731a20
commit e3a5218eb1
2 changed files with 14 additions and 2 deletions

View File

@@ -267,7 +267,7 @@ impl HwDecoderImage<'_> {
}
fn get_config(k: &str) -> ResultType<CodecInfos> {
let v = HwCodecConfig::load()
let v = HwCodecConfig::get()
.options
.get(k)
.unwrap_or(&"".to_owned())
@@ -323,7 +323,8 @@ pub fn check_config_process(force_reset: bool) {
std::process::Command::new(exe)
.arg("--check-hwcodec-config")
.status()
.ok()
.ok();
HwCodecConfig::refresh();
});
};
}