]> git.sesse.net Git - nageru/blobdiff - main.cpp
Remove frame files that do not exist from the database.
[nageru] / main.cpp
index 95b3ff8cc85dc137df6bcb34496dc38d0f8a22c2..e0518afb95421d3ad906cc9a910f2dee01aef9d0 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -435,6 +435,8 @@ void load_existing_frames()
                sort(frames[stream_idx].begin(), frames[stream_idx].end(),
                        [](const auto &a, const auto &b) { return a.pts < b.pts; });
        }
+
+       db.clean_unused_frame_files(frame_basenames);
 }
 
 int record_thread_func()