Skip to content

Commit

Permalink
Merge pull request #13 from Telmate/PS-2221-FIX
Browse files Browse the repository at this point in the history
fix storage path
  • Loading branch information
avis authored Jul 23, 2018
2 parents 84c493e + e1b337c commit 3c0dd90
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ TelmateFrameGrabberOpenCVImpl::TelmateFrameGrabberOpenCVImpl() {
this->thrLoop = true;
this->snapInterval = 1000;
this->epName = "EP_NAME_UNINITIALIZED";
this->storagePath = "/tmp";
this->storagePath.clear(); //= NULL; /*"/tmp";*/
this->framesCounter = 0;
this->outputFormat = FGFMT_JPEG;
this->lastQueueTimeStamp = 0;
Expand Down Expand Up @@ -103,6 +103,10 @@ void TelmateFrameGrabberOpenCVImpl::queueHandler() {

while (this->thrLoop) {

if(this->storagePath.empty()) {
boost::this_thread::sleep_for(boost::chrono::milliseconds(50));
continue;
}
this->frameQueue->pop(ptrVf); // blocks
params.clear(); // clear the vector since the last iteration.
this->lastQueueTimeStamp = this->getCurrentTimestampLong();
Expand Down

0 comments on commit 3c0dd90

Please sign in to comment.