Make saving preview frames on restart more reliable (#10630)

* increase priority of saving preview frames

* Improve checking for ended recording
This commit is contained in:
Nicolas Mowen
2024-03-23 13:45:15 -06:00
committed by GitHub
parent 3a9607e59b
commit c2a32bd6c1
2 changed files with 9 additions and 3 deletions

View File

@@ -130,6 +130,8 @@ def output_frames(
previous_frames[camera] = frame_time
move_preview_frames("clips")
while True:
(topic, data) = detection_subscriber.get_data(timeout=0)
@@ -156,8 +158,6 @@ def output_frames(
for preview in preview_recorders.values():
preview.stop()
move_preview_frames("clips")
if birdseye is not None:
birdseye.stop()