cap the array size of the output queue

This commit is contained in:
Blake Blackshear 2021-06-11 19:34:49 -05:00
parent babe1dd1eb
commit ed761d1767
2 changed files with 1 additions and 2 deletions

View File

@ -128,7 +128,7 @@ class FrigateApp:
# Queues for clip processing
self.event_queue = mp.Queue()
self.event_processed_queue = mp.Queue()
self.video_output_queue = mp.Queue()
self.video_output_queue = mp.Queue(maxsize=len(self.config.cameras.keys()) * 2)
# Queue for cameras to push tracked objects to
self.detected_frames_queue = mp.Queue(

View File

@ -719,7 +719,6 @@ class TrackedObjectProcessor(threading.Thread):
frame_time, current_tracked_objects, motion_boxes, regions
)
# TODO: should this queue have a max length?
self.video_output_queue.put(
(
camera,