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:
parent
0ffd40f18a
commit
6f27ddf6ca
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue