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 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":