From 0f6e7603dfaa2bcb40fa73af74fca6ade067d7e9 Mon Sep 17 00:00:00 2001 From: Maurice ONeal Date: Fri, 10 Mar 2023 20:51:18 -0500 Subject: [PATCH] v.2.0.t5 Found the write out bug. genEventPath() was getting unexpected input causing it to output empty strings. --- src/common.h | 2 +- src/mo_detect.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common.h b/src/common.h index 8ae2444..1984586 100644 --- a/src/common.h +++ b/src/common.h @@ -37,7 +37,7 @@ using namespace std; using namespace std::filesystem; using namespace std::chrono; -#define APP_VER "2.0.t4" +#define APP_VER "2.0.t5" #define APP_NAME "Motion Watch" #define REC_LOG_NAME "rec_log_lines.html" #define DET_LOG_NAME "det_log_lines.html" diff --git a/src/mo_detect.cpp b/src/mo_detect.cpp index ce51f80..e0f6fa8 100644 --- a/src/mo_detect.cpp +++ b/src/mo_detect.cpp @@ -36,7 +36,7 @@ void detectMoInStream(const string &bufPath, shared_t *share) if (moDetect(clip.clipPath, clip.thumbnail, share)) { clip.fileName = genTimeStr("%Y-%j-%H-%M"); - clip.dstPath = genEventPath(bufPath); + clip.dstPath = genEventPath(clip.clipPath); clip.createTime = genEpoch(); share->skipCmd = true;