mirror of
https://github.com/Project-Babble/ProjectBabble.git
synced 2026-11-21 17:41:20 -08:00
Fix: "Serial camera doesn't work from drop-down", capture source not changing:
https://github.com/Project-Babble/ProjectBabble/issues/99
This commit is contained in:
1 parent
50d03cec35
commit
26f06fc9da
1 file changed
+1
-6
+1
-6
@@ -92,13 +92,8 @@ class Camera:
|
||||
should_push = True
|
||||
# If things aren't open, retry until they are. Don't let read requests come in any earlier
|
||||
# than this, otherwise we can deadlock (valve reference) ourselves.
|
||||
if (
|
||||
self.config.capture_source is not None
|
||||
and self.config.capture_source != ""
|
||||
):
|
||||
self.current_capture_source = self.config.capture_source
|
||||
if self.config.capture_source not in (None, ""):
|
||||
isSerial = any(x in str(self.config.capture_source) for x in PORTS)
|
||||
|
||||
if isSerial:
|
||||
if self.cv2_camera is not None:
|
||||
self.cv2_camera.release()
|
||||
|
||||
Reference in new issue
Block a user