mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-12 22:25:24 +03:00
Don't delete previous shm frames in output
This commit is contained in:
parent
61a77b8ee2
commit
de9160ccaa
@ -45,7 +45,6 @@ def output_frames(
|
|||||||
signal.signal(signal.SIGINT, receiveSignal)
|
signal.signal(signal.SIGINT, receiveSignal)
|
||||||
|
|
||||||
frame_manager = SharedMemoryFrameManager()
|
frame_manager = SharedMemoryFrameManager()
|
||||||
previous_frames = {}
|
|
||||||
|
|
||||||
# start a websocket server on 8082
|
# start a websocket server on 8082
|
||||||
WebSocketWSGIHandler.http_version = "1.1"
|
WebSocketWSGIHandler.http_version = "1.1"
|
||||||
@ -125,12 +124,6 @@ def output_frames(
|
|||||||
current_tracked_objects, motion_boxes, frame_time, frame
|
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")
|
move_preview_frames("clips")
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
@ -149,7 +142,7 @@ def output_frames(
|
|||||||
|
|
||||||
frame_id = f"{camera}{frame_time}"
|
frame_id = f"{camera}{frame_time}"
|
||||||
frame = frame_manager.get(frame_id, config.cameras[camera].frame_shape_yuv)
|
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()
|
detection_subscriber.stop()
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user