From ee1fbb0a76c1d3c4eca5bdfd0da26e18ea57bc5a Mon Sep 17 00:00:00 2001 From: fufesou Date: Mon, 27 Mar 2023 23:29:28 +0800 Subject: [PATCH] fix build Signed-off-by: fufesou --- libs/scrap/src/common/hwcodec.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/scrap/src/common/hwcodec.rs b/libs/scrap/src/common/hwcodec.rs index f55fd452a..db8c6b2ef 100644 --- a/libs/scrap/src/common/hwcodec.rs +++ b/libs/scrap/src/common/hwcodec.rs @@ -3,7 +3,8 @@ use crate::{ hw, ImageFormat, HW_STRIDE_ALIGN, }; use hbb_common::{ - anyhow::{allow_err, anyhow, Context}, + allow_err, + anyhow::{anyhow, Context}, bytes::Bytes, config::HwCodecConfig, get_time, lazy_static, log, @@ -354,7 +355,7 @@ pub fn check_config_process(force_reset: bool) { // kill: Different platforms have different results allow_err!(child.kill()); std::thread::sleep(std::time::Duration::from_millis(30)); - match ps.try_wait() { + match child.try_wait() { Ok(Some(status)) => log::info!("Check hwcodec config, exit with: {status}"), Ok(None) => { log::info!(