trickle in some frames after activity stops

This commit is contained in:
Blake Blackshear 2021-06-13 09:01:24 -05:00
parent e0eb247028
commit 35281c037c

View File

@ -295,9 +295,11 @@ class BirdsEyeFrameManager:
if (now - self.last_output_time) < 1 / 10:
return False
# if the frame was updated or the fps is too low, send frame
if self.update_frame() or (now - self.last_output_time) > 1:
self.last_output_time = now
return self.update_frame()
return True
return False
def output_frames(config: FrigateConfig, video_output_queue):