Found the write out bug. genEventPath() was getting unexpected input
causing it to output empty strings.
This commit is contained in:
Maurice ONeal 2023-03-10 20:51:18 -05:00
parent bddde644c1
commit 0f6e7603df
2 changed files with 2 additions and 2 deletions

View File

@ -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"

View File

@ -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;