Fix birdseye memory leak (#8992)

This commit is contained in:
Nicolas Mowen 2023-12-20 07:34:13 -07:00 committed by Blake Blackshear
parent f8d114cd33
commit 1a27c7db29
2 changed files with 4 additions and 2 deletions

View File

@ -668,6 +668,7 @@ class Birdseye:
def __init__(
self,
config: FrigateConfig,
frame_manager: SharedMemoryFrameManager,
camera_metrics: dict[str, CameraMetricsTypes],
stop_event: mp.Event,
websocket_server,
@ -688,7 +689,6 @@ class Birdseye:
self.broadcaster = BroadcastThread(
"birdseye", self.converter, websocket_server, stop_event
)
frame_manager = SharedMemoryFrameManager()
self.birdseye_manager = BirdsEyeFrameManager(
config, frame_manager, stop_event, camera_metrics
)

View File

@ -71,7 +71,9 @@ def output_frames(
preview_recorders[camera] = PreviewRecorder(cam_config, inter_process_queue)
if config.birdseye.enabled:
birdseye = Birdseye(config, camera_metrics, stop_event, websocket_server)
birdseye = Birdseye(
config, frame_manager, camera_metrics, stop_event, websocket_server
)
websocket_thread.start()