V4L and V4L2 based Video capture bug fix (Bugfix #3144).
authorAlexander Smorkalov <alexander.smorkalov@itseez.com>
Tue, 9 Jul 2013 12:07:55 +0000 (16:07 +0400)
committerAlexander Smorkalov <alexander.smorkalov@itseez.com>
Tue, 9 Jul 2013 12:07:55 +0000 (16:07 +0400)
modules/highgui/src/cap.cpp

index cc92da3..0d0fd41 100644 (file)
@@ -220,8 +220,8 @@ CV_IMPL CvCapture * cvCreateCameraCapture (int index)
                 return capture;
             break;
 #endif
-#ifdef HAVE_VFW
         case CV_CAP_VFW:
+#ifdef HAVE_VFW
             capture = cvCreateCameraCapture_VFW (index);
             if (capture)
                 return capture;