tmp fix video qos reset
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
53f6734997
commit
bc5c6e9a06
@ -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 {
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user