Skip to content

Commit

Permalink
Merge pull request #20 from Telmate/PS-2221-FIX
Browse files Browse the repository at this point in the history
Testing Storage Set
  • Loading branch information
avis authored Jul 24, 2018
2 parents b855f51 + 5dcdf0e commit e19ed2f
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,11 @@ void TelmateFrameGrabberOpenCVImpl::queueHandler() {
std::string filename =
std::to_string((long) this->framesCounter) + "_" + ptrVf->ts + image_extension;

if (this->storagePathSubdir.empty() || this->storagePath.compare(this->prevStoragePath)) {


if (this->storagePathSubdir.empty() || !this->storagePath.compare(this->prevStoragePath)) {

GST_INFO("Storage path has changed. old storage path: %s. new storage path: %s",this->prevStoragePath.c_str(), this->storagePathSubdir.c_str());
this->prevStoragePath = this->storagePath;
this->storagePathSubdir = this->storagePath + "/frames_" + this->getCurrentTimestampString();
boost::filesystem::path dir(this->storagePathSubdir.c_str());
Expand Down

0 comments on commit e19ed2f

Please sign in to comment.