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:
SnuffSocket committed 2025-04-14 02:13:59 +03:00
1 parent 50d03cec35
commit 26f06fc9da
1 file changed
+1 -6
+1 -6
View File
@@ -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()