You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Threaded camera CameraCallback creates a loop camera_frame_thread_loop that continuously acquires the lock. When stop_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.
The text was updated successfully, but these errors were encountered:
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.
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.The text was updated successfully, but these errors were encountered: