tmp fix video qos reset

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages 2023-04-06 16:48:29 +08:00
parent 53f6734997
commit bc5c6e9a06
2 changed files with 4 additions and 2 deletions

View File

@ -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 {

View File

@ -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,