summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/v4l2_device/capture_async.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/v4l2_device/capture_async.cpp b/test/v4l2_device/capture_async.cpp
index 7a0735f6..ba37c973 100644
--- a/test/v4l2_device/capture_async.cpp
+++ b/test/v4l2_device/capture_async.cpp
@@ -56,9 +56,12 @@ protected:
if (ret)
return TestFail;
- timeout.start(5000);
- while (timeout.isRunning())
+ timeout.start(10000);
+ while (timeout.isRunning()) {
dispatcher->processEvents();
+ if (frames > 30)
+ break;
+ }
if (frames < 1) {
std::cout << "Failed to capture any frames within timeout." << std::endl;