mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-12-23 19:11:14 +01:00
Fix birdseye memory leak (#8992)
This commit is contained in:
parent
f8d114cd33
commit
1a27c7db29
@ -668,6 +668,7 @@ class Birdseye:
|
|||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
config: FrigateConfig,
|
config: FrigateConfig,
|
||||||
|
frame_manager: SharedMemoryFrameManager,
|
||||||
camera_metrics: dict[str, CameraMetricsTypes],
|
camera_metrics: dict[str, CameraMetricsTypes],
|
||||||
stop_event: mp.Event,
|
stop_event: mp.Event,
|
||||||
websocket_server,
|
websocket_server,
|
||||||
@ -688,7 +689,6 @@ class Birdseye:
|
|||||||
self.broadcaster = BroadcastThread(
|
self.broadcaster = BroadcastThread(
|
||||||
"birdseye", self.converter, websocket_server, stop_event
|
"birdseye", self.converter, websocket_server, stop_event
|
||||||
)
|
)
|
||||||
frame_manager = SharedMemoryFrameManager()
|
|
||||||
self.birdseye_manager = BirdsEyeFrameManager(
|
self.birdseye_manager = BirdsEyeFrameManager(
|
||||||
config, frame_manager, stop_event, camera_metrics
|
config, frame_manager, stop_event, camera_metrics
|
||||||
)
|
)
|
||||||
|
@ -71,7 +71,9 @@ def output_frames(
|
|||||||
preview_recorders[camera] = PreviewRecorder(cam_config, inter_process_queue)
|
preview_recorders[camera] = PreviewRecorder(cam_config, inter_process_queue)
|
||||||
|
|
||||||
if config.birdseye.enabled:
|
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()
|
websocket_thread.start()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user