Open bsekura opened 8 months ago
This is happening on Windows using media foundation backend. frame
internally calls source reader ReadSample
, which is a blocking call. So this results in this thread being blocked on ReadSample
for most of its time, practically holding the lock all the time.
Ill change the MSMF backend to use the callback reader in 0.11
Threaded camera
CameraCallback
creates a loopcamera_frame_thread_loop
that continuously acquires the lock. Whenstop_stream
is called, it tries to lock the camera first, but it never succeeds. As a result, one cannot stop the threaded camera - it continues on indefinitely.