From d4f91b30ea7dccfcc43b8e930a9de9d8d0f64349 Mon Sep 17 00:00:00 2001 From: Dominic Canare Date: Thu, 29 Feb 2024 17:14:53 -0600 Subject: [PATCH 1/2] extended_controls is optional --- pyuvc-source/uvc_bindings.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyuvc-source/uvc_bindings.pyx b/pyuvc-source/uvc_bindings.pyx index a4fd435..c73a6ad 100644 --- a/pyuvc-source/uvc_bindings.pyx +++ b/pyuvc-source/uvc_bindings.pyx @@ -516,7 +516,7 @@ cdef class Capture: cdef dict _info cdef public list controls - def __cinit__(self, dev_uid, extended_controls): + def __cinit__(self, dev_uid, extended_controls=None): self.dev = NULL self.ctx = NULL self.devh = NULL From 8559819ab0cd981bc3f3a9c44fd57485260d3670 Mon Sep 17 00:00:00 2001 From: Dominic Canare Date: Tue, 5 Mar 2024 06:32:38 -0600 Subject: [PATCH 2/2] Use local libuvc by default --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 3a7113b..a25cbdc 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ cmake_args = [] cmake_args.append(f"-DUVC_DEBUGGING={os.environ.get('UVC_DEBUGGING', 'OFF')}") cmake_args.append( - f"-DFORCE_LOCAL_LIBUVC_BUILD={os.environ.get('FORCE_LOCAL_LIBUVC_BUILD', 'OFF')}" + f"-DFORCE_LOCAL_LIBUVC_BUILD={os.environ.get('FORCE_LOCAL_LIBUVC_BUILD', 'ON')}" ) if platform.system() == "Windows":