From 87b97e24d1bfd6bd57afd3c893a3be2bf47252e6 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 17 Oct 2021 13:40:46 +0200 Subject: video/ps3eye: allow consecutive `start()' calls without `stop()' --- video-ps3eye/module.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'video-ps3eye') 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; -- cgit v1.2.3