From de9160ccaa592b75dc7afad3435e58abe9894230 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Mon, 8 Jul 2024 15:39:42 -0600 Subject: [PATCH] Don't delete previous shm frames in output --- frigate/output/output.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/frigate/output/output.py b/frigate/output/output.py index e458d3242..d0fd43068 100644 --- a/frigate/output/output.py +++ b/frigate/output/output.py @@ -45,7 +45,6 @@ def output_frames( signal.signal(signal.SIGINT, receiveSignal) frame_manager = SharedMemoryFrameManager() - previous_frames = {} # start a websocket server on 8082 WebSocketWSGIHandler.http_version = "1.1" @@ -125,12 +124,6 @@ def output_frames( current_tracked_objects, motion_boxes, frame_time, frame ) - # delete frames after they have been used for output - if camera in previous_frames: - frame_manager.delete(f"{camera}{previous_frames[camera]}") - - previous_frames[camera] = frame_time - move_preview_frames("clips") while True: @@ -149,7 +142,7 @@ def output_frames( frame_id = f"{camera}{frame_time}" frame = frame_manager.get(frame_id, config.cameras[camera].frame_shape_yuv) - frame_manager.delete(frame_id) + frame_manager.close(frame_id) detection_subscriber.stop()