make sure entire segment is accounted for

This commit is contained in:
Josh Hawkins 2023-10-25 16:17:30 -05:00 committed by Nicolas Mowen
parent def889e3a8
commit 441c605312

View File

@ -270,7 +270,7 @@ class RecordingMaintainer(threading.Thread):
][0] ][0]
# ensure delayed segment info does not lead to lost segments # ensure delayed segment info does not lead to lost segments
if most_recently_processed_frame_time >= start_time.timestamp(): if most_recently_processed_frame_time >= end_time.timestamp():
record_mode = self.config.cameras[camera].record.retain.mode record_mode = self.config.cameras[camera].record.retain.mode
return await self.move_segment( return await self.move_segment(
camera, start_time, end_time, duration, cache_path, record_mode camera, start_time, end_time, duration, cache_path, record_mode