VideoCapture::read() hangs [closed]

asked 2016-06-20 14:30:25 -0600

logidelic gravatar image

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.

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by sturkmen
close date 2020-10-08 07:05:43.824771

Comments

There is a fix for this issue here. I think you have to recompile OpenCV to get it to work.

marcassin22 gravatar imagemarcassin22 ( 2016-06-21 07:47:01 -0600 )edit

Hard to tell because the issue is sporadic, but so far so good! Thanks!

logidelic gravatar imagelogidelic ( 2016-06-28 10:10:26 -0600 )edit