From 418d07a1e5a5173ed340180dd1cbcb185ee5ddfb Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 3 Sep 2021 22:35:38 +0200 Subject: video/ps3eye: don't sleep too much --- video-ps3eye/module.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'video-ps3eye') diff --git a/video-ps3eye/module.cpp b/video-ps3eye/module.cpp index 4279d68d..382c8ea7 100644 --- a/video-ps3eye/module.cpp +++ b/video-ps3eye/module.cpp @@ -137,7 +137,7 @@ void ps3eye_camera::stop() volatile auto& ptr = *(ps3eye::shm*)shm.ptr(); ptr.in.do_exit = 1; std::atomic_thread_fence(std::memory_order_seq_cst); - wrapper.waitForFinished(5000); + wrapper.waitForFinished(1000); if (wrapper.state() != QProcess::NotRunning) wrapper.kill(); @@ -181,7 +181,7 @@ bool ps3eye_camera::start(info& args) wrapper.start(); - constexpr int sleep_ms = 10, max_sleeps = 5000/sleep_ms; + constexpr int sleep_ms = 10, max_sleeps = 2000/sleep_ms; for (int i = 0; i < max_sleeps; i++) { -- cgit v1.2.3