From 441c605312d2d98098b8d86f9782165bbf6ab118 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Wed, 25 Oct 2023 16:17:30 -0500 Subject: [PATCH] make sure entire segment is accounted for --- frigate/record/maintainer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/record/maintainer.py b/frigate/record/maintainer.py index f99c2f550..7cc715afd 100644 --- a/frigate/record/maintainer.py +++ b/frigate/record/maintainer.py @@ -270,7 +270,7 @@ class RecordingMaintainer(threading.Thread): ][0] # 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 return await self.move_segment( camera, start_time, end_time, duration, cache_path, record_mode