010-camera-timeout.patch

Mitar M, 2010-11-30 03:18 am

Download (1.1 kB)

 
OpenCV-2.0.0/src/highgui/cvcap_v4l.cpp 2009-12-15 15:10:34.000000000 +0100
1227 1228
            FD_SET (capture->deviceHandle, &fds);
1228 1229

  
1229 1230
            /* Timeout. */
1230
            tv.tv_sec = 2;
1231
            tv.tv_sec = 10; // Increased from 2 to 10 to allow camera start-up
1231 1232
            tv.tv_usec = 0;
1232 1233

  
1233 1234
            r = select (capture->deviceHandle+1, &fds, NULL, NULL, &tv);
OpenCV-2.0.0/src/highgui/cvcap_libv4l.cpp 2009-12-15 15:10:34.000000000 +0100
1227 1228
            FD_SET (capture->deviceHandle, &fds);
1228 1229

  
1229 1230
            /* Timeout. */
1230
            tv.tv_sec = 2;
1231
            tv.tv_sec = 10; // Increased from 2 to 10 to allow camera start-up
1231 1232
            tv.tv_usec = 0;
1232 1233

  
1233 1234
            r = select (capture->deviceHandle+1, &fds, NULL, NULL, &tv);