mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-01-07 00:06:57 +01:00
check frame time for segment
This commit is contained in:
parent
e173377859
commit
613f1f6bd6
@ -265,10 +265,16 @@ class RecordingMaintainer(threading.Thread):
|
|||||||
self.end_time_cache.pop(cache_path, None)
|
self.end_time_cache.pop(cache_path, None)
|
||||||
# else retain days includes this segment
|
# else retain days includes this segment
|
||||||
else:
|
else:
|
||||||
record_mode = self.config.cameras[camera].record.retain.mode
|
most_recently_processed_frame_time = self.object_recordings_info[camera][
|
||||||
return await self.move_segment(
|
-1
|
||||||
camera, start_time, end_time, duration, cache_path, record_mode
|
][0]
|
||||||
)
|
|
||||||
|
# ensure delayed segment info does not lead to lost segments
|
||||||
|
if most_recently_processed_frame_time >= start_time:
|
||||||
|
record_mode = self.config.cameras[camera].record.retain.mode
|
||||||
|
return await self.move_segment(
|
||||||
|
camera, start_time, end_time, duration, cache_path, record_mode
|
||||||
|
)
|
||||||
|
|
||||||
def segment_stats(
|
def segment_stats(
|
||||||
self, camera: str, start_time: datetime.datetime, end_time: datetime.datetime
|
self, camera: str, start_time: datetime.datetime, end_time: datetime.datetime
|
||||||
|
Loading…
Reference in New Issue
Block a user