title: OpenCV webcam capture problem
body: <p>I've installed OpenCV 2.2 and now I can't get webcam capture to work. It worked ok in 2.1. OpenCV detects a webcam, doesn't report any errors or warnings, but each frame is a gray image. I even tried a code sample from OpenCV wiki:</p>
  
  <pre><code>VideoCapture cap(0); // open the default camera
  if(!cap.isOpened())  // check if we succeeded
      return -1;
  
  Mat edges;
  namedWindow("edges",1);
  for(;;)
  {
      Mat frame;
      cap &gt;&gt; frame; // get a new frame from camera
      cvtColor(frame, edges, CV_BGR2GRAY);
      //GaussianBlur(edges, edges, Size(7,7), 1.5, 1.5);
      //Canny(edges, edges, 0, 30, 3);
      imshow("edges", edges);
      if(waitKey(30) &gt;= 0) break;
  }
  // the camera will be deinitialized automatically in VideoCapture destructor
  return 0;
  </code></pre>
  
  <p>Did anyone run into this issue? I'm using 64bit Win7 and Visual Studio 2010.</p>