mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-09 06:55:28 +03:00
drop cache segments past retain cutoff regardless of retention mode
This commit is contained in:
parent
5f8d590d87
commit
da8579040d
@ -464,10 +464,12 @@ class RecordingMaintainer(threading.Thread):
|
|||||||
self.drop_segment(cache_path)
|
self.drop_segment(cache_path)
|
||||||
return None
|
return None
|
||||||
|
|
||||||
# if it doesn't overlap with an review item, go ahead and drop the segment
|
# if it doesn't overlap with a review item, drop the segment once it
|
||||||
# if it ends more than the configured pre_capture for the camera
|
# ends more than event_pre_capture before the most recently processed
|
||||||
# BUT only if continuous/motion is NOT enabled (otherwise wait for processing)
|
# frame. at this point we've already decided not to keep it for
|
||||||
elif highest is None:
|
# continuous/motion retention (either disabled or segment_stats said
|
||||||
|
# discard), so waiting longer just fills the cache.
|
||||||
|
else:
|
||||||
camera_info = self.object_recordings_info[camera]
|
camera_info = self.object_recordings_info[camera]
|
||||||
most_recently_processed_frame_time = (
|
most_recently_processed_frame_time = (
|
||||||
camera_info[-1][0] if len(camera_info) > 0 else 0
|
camera_info[-1][0] if len(camera_info) > 0 else 0
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user