mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
remove stub.rs, it is really hard to remove scrap totally, which is used
all where
This commit is contained in:
@@ -500,7 +500,6 @@ impl Connection {
|
||||
let _ = privacy_mode::turn_off_privacy(0);
|
||||
}
|
||||
video_service::notify_video_frame_feched(id, None);
|
||||
#[cfg(not(feature = "cli"))]
|
||||
scrap::codec::Encoder::update_video_encoder(id, scrap::codec::EncoderUpdate::Remove);
|
||||
video_service::VIDEO_QOS.lock().unwrap().reset();
|
||||
if conn.authorized {
|
||||
@@ -1077,20 +1076,17 @@ impl Connection {
|
||||
if let Some(o) = lr.option.as_ref() {
|
||||
self.update_option(o).await;
|
||||
if let Some(q) = o.video_codec_state.clone().take() {
|
||||
#[cfg(not(feature = "cli"))]
|
||||
scrap::codec::Encoder::update_video_encoder(
|
||||
self.inner.id(),
|
||||
scrap::codec::EncoderUpdate::State(q),
|
||||
);
|
||||
} else {
|
||||
#[cfg(not(feature = "cli"))]
|
||||
scrap::codec::Encoder::update_video_encoder(
|
||||
self.inner.id(),
|
||||
scrap::codec::EncoderUpdate::DisableHwIfNotExist,
|
||||
);
|
||||
}
|
||||
} else {
|
||||
#[cfg(not(feature = "cli"))]
|
||||
scrap::codec::Encoder::update_video_encoder(
|
||||
self.inner.id(),
|
||||
scrap::codec::EncoderUpdate::DisableHwIfNotExist,
|
||||
@@ -1649,7 +1645,6 @@ impl Connection {
|
||||
}
|
||||
}
|
||||
if let Some(q) = o.video_codec_state.clone().take() {
|
||||
#[cfg(not(feature = "cli"))]
|
||||
scrap::codec::Encoder::update_video_encoder(
|
||||
self.inner.id(),
|
||||
scrap::codec::EncoderUpdate::State(q),
|
||||
|
||||
@@ -1,48 +0,0 @@
|
||||
use super::*;
|
||||
|
||||
pub mod audio_service {
|
||||
use super::*;
|
||||
pub const NAME: &'static str = "audio";
|
||||
pub fn new() -> GenericService {
|
||||
let sp = GenericService::new(NAME, true);
|
||||
sp
|
||||
}
|
||||
pub fn restart() {}
|
||||
}
|
||||
|
||||
pub mod video_service {
|
||||
use super::*;
|
||||
pub const NAME: &'static str = "video";
|
||||
pub fn new() -> GenericService {
|
||||
let sp = GenericService::new(NAME, true);
|
||||
sp
|
||||
}
|
||||
pub fn is_privacy_mode_supported() -> bool {
|
||||
false
|
||||
}
|
||||
pub fn test_create_capturer(privacy_mode_id: i32, timeout_millis: u64) -> bool {
|
||||
false
|
||||
}
|
||||
pub fn refresh() {}
|
||||
pub async fn switch_display(i: i32) {}
|
||||
pub async fn get_displays() -> ResultType<(usize, Vec<DisplayInfo>)> {
|
||||
bail!("No displayes");
|
||||
}
|
||||
pub fn is_inited_msg() -> Option<Message> {
|
||||
None
|
||||
}
|
||||
pub fn capture_cursor_embeded() -> bool {
|
||||
false
|
||||
}
|
||||
pub async fn switch_to_primary() {}
|
||||
pub fn set_privacy_mode_conn_id(_: i32) {}
|
||||
pub fn get_privacy_mode_conn_id() -> i32 {
|
||||
0
|
||||
}
|
||||
pub fn notify_video_frame_feched(_: i32, _: Option<std::time::Instant>) {}
|
||||
lazy_static::lazy_static! {
|
||||
pub static ref VIDEO_QOS: Arc<Mutex<video_qos::VideoQoS>> = Default::default();
|
||||
}
|
||||
pub const SCRAP_X11_REQUIRED: &str = "";
|
||||
pub const SCRAP_X11_REF_URL: &str = "";
|
||||
}
|
||||
Reference in New Issue
Block a user