Fix bug, in video-demo not all the frames are wrote to the csv file due to a race condition

This commit is contained in:
Abdelrahman Mahmoud 2016-06-22 17:25:38 -04:00
parent 0ffd40f18a
commit 6f27ddf6ca
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ int main(int argsc, char ** argsv)
listenPtr->outputToFile(faces, frame.getTimestamp());
}
} while(VIDEO_EXTS[fileExt] && videoListenPtr->isRunning());
} while (VIDEO_EXTS[fileExt] && (videoListenPtr->isRunning() || listenPtr->getDataSize() > 0));
} while(loop);
detector->stop();