mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-11-23 19:49:05 +08:00
remove first frame fallback if repeat (#9267)
Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
parent
7a1157f1b0
commit
4150036589
@ -947,7 +947,9 @@ fn handle_one_frame(
|
||||
} else {
|
||||
3
|
||||
};
|
||||
if first || *encode_fail_counter >= max_fail_times {
|
||||
let repeat = !encoder.latency_free();
|
||||
// repeat encoders can reach max_fail_times on the first frame
|
||||
if (first && !repeat) || *encode_fail_counter >= max_fail_times {
|
||||
*encode_fail_counter = 0;
|
||||
if encoder.is_hardware() {
|
||||
encoder.disable();
|
||||
|
Loading…
Reference in New Issue
Block a user