22 lines
1.0 KiB
Diff
22 lines
1.0 KiB
Diff
diff -up ./wrappers/python/freenect.pyx.cython3 ./wrappers/python/freenect.pyx
|
|
--- ./wrappers/python/freenect.pyx.cython3 2023-08-07 20:46:10.771514185 -0400
|
|
+++ ./wrappers/python/freenect.pyx 2023-08-07 20:54:34.791037845 -0400
|
|
@@ -322,7 +322,7 @@ cpdef open_device(CtxPtr ctx, int index)
|
|
|
|
_depth_cb, _video_cb = None, None
|
|
|
|
-cdef void depth_cb(freenect_device *dev, void *data, uint32_t timestamp) with gil:
|
|
+cdef void depth_cb(freenect_device *dev, void *data, uint32_t timestamp) noexcept with gil:
|
|
cdef freenect_frame_mode mode = freenect_get_current_depth_mode(dev)
|
|
if not mode.is_valid:
|
|
return
|
|
@@ -333,7 +333,7 @@ cdef void depth_cb(freenect_device *dev,
|
|
pydata = _depth_cb_np(data, &mode)
|
|
_depth_cb(dev_out, pydata, timestamp)
|
|
|
|
-cdef void video_cb(freenect_device *dev, void *data, uint32_t timestamp) with gil:
|
|
+cdef void video_cb(freenect_device *dev, void *data, uint32_t timestamp) noexcept with gil:
|
|
cdef freenect_frame_mode mode = freenect_get_current_video_mode(dev)
|
|
if not mode.is_valid:
|
|
return
|