diff --git a/src/server/video_qos.rs b/src/server/video_qos.rs index 47bf49707..5bb687473 100644 --- a/src/server/video_qos.rs +++ b/src/server/video_qos.rs @@ -221,7 +221,9 @@ impl VideoQoS { } pub fn reset(&mut self) { - *self = Default::default(); + self.fps = FPS; + self.user_fps = FPS; + self.updated = true; } pub fn check_abr_config(&mut self) -> bool { diff --git a/src/server/video_service.rs b/src/server/video_service.rs index 691ca4abe..4abeafff5 100644 --- a/src/server/video_service.rs +++ b/src/server/video_service.rs @@ -547,7 +547,7 @@ fn run(sp: GenericService) -> ResultType<()> { check_uac_switch(c.privacy_mode_id, c._capturer_privacy_mode_id)?; let mut video_qos = VIDEO_QOS.lock().unwrap(); - if video_qos.check_if_updated() { + if video_qos.check_if_updated() && video_qos.target_bitrate > 0 { log::debug!( "qos is updated, target_bitrate:{}, fps:{}", video_qos.target_bitrate,