Handle in progress previews export and fix time check bug (#14930)

* Handle in progress previews and fix time check bug

* Formatting
This commit is contained in:
Nicolas Mowen
2024-11-11 08:30:55 -07:00
committed by GitHub
parent 6c86827d3a
commit 9c20cd5f7b
4 changed files with 44 additions and 2 deletions

View File

@@ -144,6 +144,9 @@ def output_frames(
# check for any cameras that are currently offline
# and need to generate a preview
if generated_preview:
logger.debug(
"Checking for offline cameras because another camera generated a preview."
)
for camera, time in preview_write_times.copy().items():
if time != 0 and frame_time - time > 10:
preview_recorders[camera].flag_offline(frame_time)