enable hwcodec

This commit is contained in:
csf
2022-06-30 16:19:36 +08:00
parent eaaeefd90b
commit 09937049a6
3 changed files with 70 additions and 4 deletions

View File

@@ -702,7 +702,7 @@ impl UI {
let p = "explorer";
#[cfg(target_os = "macos")]
let p = "open";
#[cfg(target_os = "linux")]
#[cfg(target_os = "linux")]
let p = if std::path::Path::new("/usr/bin/firefox").exists() {
"firefox"
} else {
@@ -753,6 +753,13 @@ impl UI {
self.get_option_("custom-rendezvous-server"),
)
}
fn has_hwcodec(&self) -> bool {
#[cfg(not(feature = "hwcodec"))]
return false;
#[cfg(feature = "hwcodec")]
return true;
}
}
impl sciter::EventHandler for UI {
@@ -829,6 +836,7 @@ impl sciter::EventHandler for UI {
fn discover();
fn get_lan_peers();
fn get_uuid();
fn has_hwcodec();
}
}