mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-06 07:21:27 +03:00
opt supported encoding update, consider multi connections (#7978)
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
@@ -6,7 +6,7 @@ use std::{
|
||||
|
||||
use crate::{
|
||||
codec::{base_bitrate, enable_vram_option, EncoderApi, EncoderCfg, Quality},
|
||||
AdapterDevice, CodecFormat, CodecName, EncodeInput, EncodeYuvFormat, Pixfmt,
|
||||
AdapterDevice, CodecFormat, EncodeInput, EncodeYuvFormat, Pixfmt,
|
||||
};
|
||||
use hbb_common::{
|
||||
anyhow::{anyhow, bail, Context},
|
||||
@@ -284,10 +284,6 @@ impl VRamEncoder {
|
||||
log::info!("set display#{display} not use vram encode to {not_use}");
|
||||
ENOCDE_NOT_USE.lock().unwrap().insert(display, not_use);
|
||||
}
|
||||
|
||||
pub fn not_use() -> bool {
|
||||
ENOCDE_NOT_USE.lock().unwrap().iter().any(|v| *v.1)
|
||||
}
|
||||
}
|
||||
|
||||
pub struct VRamDecoder {
|
||||
|
||||
Reference in New Issue
Block a user