summaryrefslogtreecommitdiffhomepage
path: root/video-ps3eye
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2021-10-17 13:40:46 +0200
committerStanislaw Halik <sthalik@misaki.pl>2021-10-17 15:20:01 +0200
commit87b97e24d1bfd6bd57afd3c893a3be2bf47252e6 (patch)
tree72757c913711cf62b6c14925774176bab3c9d54a /video-ps3eye
parent2f10b3ad8cb8c5d34a27716f26b4a6bea0d75add (diff)
video/ps3eye: allow consecutive `start()' calls without `stop()'
Diffstat (limited to 'video-ps3eye')
-rw-r--r--video-ps3eye/module.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/video-ps3eye/module.cpp b/video-ps3eye/module.cpp
index 382c8ea7..fbc9a8da 100644
--- a/video-ps3eye/module.cpp
+++ b/video-ps3eye/module.cpp
@@ -150,6 +150,8 @@ bool ps3eye_camera::start(info& args)
if (!shm.success())
return false;
+ stop();
+
volatile auto& ptr = *(ps3eye::shm*)shm.ptr();
QString error;