force to use static link for Manjaro

This commit is contained in:
rustdesk
2021-05-02 00:37:32 +08:00
parent 335ec619d9
commit 547b85adbf
4 changed files with 247 additions and 762 deletions

View File

@@ -73,7 +73,11 @@ fn run(sp: GenericService) -> ResultType<()> {
rc_max_quantizer,
speed,
};
let mut vpx = Encoder::new(&cfg, 1).with_context(|| "Failed to create encoder")?;
let mut vpx;
match Encoder::new(&cfg, 1) {
Ok(x) => vpx = x,
Err(err) => bail!("Failed to create encoder: {}", err),
}
if *SWITCH.lock().unwrap() {
log::debug!("Broadcasting display switch");