fix for capture
authorhartmut <no@email>
Thu, 30 Jun 2011 14:57:27 +0000 (14:57 +0000)
committerhartmut <no@email>
Thu, 30 Jun 2011 14:57:27 +0000 (14:57 +0000)
modules/highgui/src/cap.cpp

index 0914822..72648f2 100644 (file)
@@ -127,8 +127,12 @@ CV_IMPL CvCapture * cvCreateCameraCapture (int index)
         CV_CAP_MIL,
         CV_CAP_QT,
         CV_CAP_UNICAP,
+#ifdef HAVE_OPENNI
         CV_CAP_OPENNI,
+#endif
+#ifdef HAVE_ANDROID_NATIVE_CAMERA
         CV_CAP_ANDROID,
+#endif
         -1
     };