From d7031606c22fd1ca5e664ae22276e503361c4a5b Mon Sep 17 00:00:00 2001 From: Alexander Shishkov Date: Fri, 17 Feb 2012 08:35:46 +0000 Subject: [PATCH] fixed #1363 --- samples/cpp/starter_video.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/cpp/starter_video.cpp b/samples/cpp/starter_video.cpp index 9244ee5..13b14df 100644 --- a/samples/cpp/starter_video.cpp +++ b/samples/cpp/starter_video.cpp @@ -41,7 +41,7 @@ namespace { for (;;) { capture >> frame; if (frame.empty()) - continue; + break; imshow(window_name, frame); char key = (char)waitKey(5); //delay N millis, usually long enough to display and capture input switch (key) { -- 2.7.4