mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-24 13:41:02 +03:00
If there is hardware ram encoder as fallback, not require all adapters (#7987)
support the codec format Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
@@ -96,10 +96,7 @@ impl EncoderApi for HwRamEncoder {
|
||||
height: ctx.height as _,
|
||||
bitrate,
|
||||
}),
|
||||
Err(_) => {
|
||||
HwCodecConfig::clear_ram();
|
||||
Err(anyhow!(format!("Failed to create encoder")))
|
||||
}
|
||||
Err(_) => Err(anyhow!(format!("Failed to create encoder"))),
|
||||
}
|
||||
}
|
||||
_ => Err(anyhow!("encoder type mismatch")),
|
||||
|
||||
Reference in New Issue
Block a user