From 40617630861491addd4103f847b5be5a9d78e9a7 Mon Sep 17 00:00:00 2001 From: abdelrahman Date: Tue, 5 Apr 2016 14:30:11 -0400 Subject: [PATCH] iFix bug in video-demo --- video-demo/video-demo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/video-demo/video-demo.cpp b/video-demo/video-demo.cpp index 2a2d043..a2ce230 100644 --- a/video-demo/video-demo.cpp +++ b/video-demo/video-demo.cpp @@ -168,7 +168,7 @@ int main(int argsc, char ** argsv) ((PhotoDetector *)detector.get())->process(frame); //Process an image } - while (VIDEO_EXTS[fileExt] && videoListenPtr->isRunning()) + do { if (listenPtr->getDataSize() > 0) { @@ -189,7 +189,7 @@ int main(int argsc, char ** argsv) listenPtr->outputToFile(faces, frame.getTimestamp()); } - } + } while(VIDEO_EXTS[fileExt] && videoListenPtr->isRunning()); } while(loop); detector->stop();