opencv.patch

Y G, 2012-08-30 04:23 am

Download (834 Bytes)

 
modules/highgui/src/cap_libv4l.cpp 2012-08-30 11:59:11.661798898 +1000
1002 1002
      return NULL;
1003 1003
   }
1004 1004

  
1005
   /* set the default size */
1006
   capture->width  = DEFAULT_V4L_WIDTH;
1007
   capture->height = DEFAULT_V4L_HEIGHT;
1008

  
1009 1005
   /* Select camera, or rather, V4L video source */
1010 1006
   if (index<0) { // Asking for the first device available
1011 1007
     for (; autoindex<MAX_CAMERAS;autoindex++)
......
1025 1021
      the standard set of cv calls promoting transparency.  "Vector Table" insertion. */
1026 1022
   capture->FirstCapture = 1;
1027 1023

  
1024
   /* set the default size */
1025
   capture->width  = DEFAULT_V4L_WIDTH;
1026
   capture->height = DEFAULT_V4L_HEIGHT;
1027

  
1028 1028

  
1029 1029
   if (_capture_V4L2 (capture, deviceName) == -1) {
1030 1030
       icvCloseCAM_V4L(capture);