From 5dd1ec98f72e0afff402a713c159c4da8cdd7faf Mon Sep 17 00:00:00 2001 From: Evgeny Talanin Date: Fri, 12 Oct 2012 14:25:36 +0400 Subject: [PATCH] #720 patch apply --- modules/highgui/src/cap_libv4l.cpp | 2 +- modules/highgui/src/cap_v4l.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/highgui/src/cap_libv4l.cpp b/modules/highgui/src/cap_libv4l.cpp index 6dcc567ca..b1be7f2e8 100644 --- a/modules/highgui/src/cap_libv4l.cpp +++ b/modules/highgui/src/cap_libv4l.cpp @@ -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); diff --git a/modules/highgui/src/cap_v4l.cpp b/modules/highgui/src/cap_v4l.cpp index 619870fd9..f8f6a895f 100644 --- a/modules/highgui/src/cap_v4l.cpp +++ b/modules/highgui/src/cap_v4l.cpp @@ -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);