Ensure livestream folder is exists

This commit is contained in:
proitlab committed 2026-07-27 10:17:59 +07:00
1 parent 3ebdc215e6
commit bb7d08abff
3 files changed
+3547

No files matched your search

+6
View File
@@ -140,6 +140,12 @@ int main(int argc, char* argv[]) {
<< " buffer=" << g_config.track_buffer_1
<< " min_hits=" << g_config.track_min_hits_1 << std::endl;
if (g_config.live_stream_enabled) {
std::filesystem::path live_p(g_config.live_stream_frame_path);
if (live_p.has_parent_path())
std::filesystem::create_directories(live_p.parent_path());
}
int class_ayam = g_config.ayam_class_id;
int class_talenan = g_config.talenan_class_id;