#720 patch apply
authorEvgeny Talanin <evgeny.talanin@itseez.com>
Fri, 12 Oct 2012 10:25:36 +0000 (14:25 +0400)
committerEvgeny Talanin <evgeny.talanin@itseez.com>
Fri, 12 Oct 2012 10:25:36 +0000 (14:25 +0400)
modules/highgui/src/cap_libv4l.cpp
modules/highgui/src/cap_v4l.cpp

index 6dcc567..b1be7f2 100644 (file)
@@ -1111,7 +1111,7 @@ static void mainloop_v4l2(CvCaptureCAM_V4L* capture) {
             FD_SET (capture->deviceHandle, &fds);
 
             /* Timeout. */
-            tv.tv_sec = 2;
+            tv.tv_sec = 10;
             tv.tv_usec = 0;
 
             r = select (capture->deviceHandle+1, &fds, NULL, NULL, &tv);
index 619870f..f8f6a89 100644 (file)
@@ -1229,7 +1229,7 @@ static void mainloop_v4l2(CvCaptureCAM_V4L* capture) {
             FD_SET (capture->deviceHandle, &fds);
 
             /* Timeout. */
-            tv.tv_sec = 2;
+            tv.tv_sec = 10;
             tv.tv_usec = 0;
 
             r = select (capture->deviceHandle+1, &fds, NULL, NULL, &tv);