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;