VideoCapture::read() hangs [closed]
I have noticed that there are rare situations where VideoCapture::read() can hang indefinitely. I can't reproduce 100% (yet) but this has happened to me when reading from an HTTP stream where the connection was interrupted abnormally.
Is there any safe way for me to tell the VideoCapture instance (from another thread) to exit from read() in this situation?
Thanks much.
There is a fix for this issue here. I think you have to recompile OpenCV to get it to work.
Hard to tell because the issue is sporadic, but so far so good! Thanks!