mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-13 06:35:24 +03:00
Improve frame safety
This commit is contained in:
parent
03e32118ae
commit
2dbec2967e
@ -851,15 +851,16 @@ class CameraState:
|
|||||||
|
|
||||||
with self.current_frame_lock:
|
with self.current_frame_lock:
|
||||||
self.tracked_objects = tracked_objects
|
self.tracked_objects = tracked_objects
|
||||||
self.current_frame_time = frame_time
|
|
||||||
self.motion_boxes = motion_boxes
|
self.motion_boxes = motion_boxes
|
||||||
self.regions = regions
|
self.regions = regions
|
||||||
|
|
||||||
if current_frame is not None:
|
if current_frame is not None:
|
||||||
|
self.current_frame_time = frame_time
|
||||||
self._current_frame = current_frame
|
self._current_frame = current_frame
|
||||||
|
|
||||||
if self.previous_frame_id is not None:
|
if self.previous_frame_id is not None:
|
||||||
self.frame_manager.close(self.previous_frame_id)
|
self.frame_manager.close(self.previous_frame_id)
|
||||||
|
|
||||||
self.previous_frame_id = frame_id
|
self.previous_frame_id = frame_id
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user