optimize settings ui

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2022-08-15 11:08:42 +08:00
parent 1b5075168e
commit 845a524b82
6 changed files with 651 additions and 308 deletions

View File

@@ -669,6 +669,13 @@ pub fn get_api_server() -> String {
)
}
pub fn has_hwcodec() -> bool {
#[cfg(not(feature = "hwcodec"))]
return false;
#[cfg(feature = "hwcodec")]
return true;
}
pub fn check_zombie(childs: Childs) {
let mut deads = Vec::new();
loop {