mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-02 14:01:28 +03:00
disable hardware encoding if encoding fails too many times (#8327)
Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
@@ -194,6 +194,10 @@ impl EncoderApi for VRamEncoder {
|
||||
fn is_hardware(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
fn disable(&self) {
|
||||
HwCodecConfig::clear(true, true);
|
||||
}
|
||||
}
|
||||
|
||||
impl VRamEncoder {
|
||||
|
||||
Reference in New Issue
Block a user