VideoCapture Constructor concurrency bug (Bug #1006)
Description
Platform: Win32-MinGW
OpenCV Version: 2.2
Calling the constructor VideoCapture::VideoCapture(const string& filename) simultaneously from multiple threads causes ffmpeg to print a bunch of statements to the terminal complaining "insufficient thread locking around avcodec_open/close()" and then crash.
Was able to fix this easily by wrapping the constructor with a global mutex. Might consider doing the same within OpenCV or making a note of it in the documentation.
Thanks!
Related issues
duplicates Bugfix #1369: Multi-threaded FFMPEG accesses crash | Done |
History
Updated by Alexander Shishkov about 13 years ago
- Description changed from Platform: Win32-MinGW [[OpenCV]] Version: 2.2 Calling the constructor [[Vide... to Platform: Win32-MinGW OpenCV Version: 2.2 Calling the constructor VideoCaptu... More
Updated by Alexander Shishkov almost 13 years ago
Duplicate of #1369
- Status changed from Open to Cancelled
Updated by Andrey Kamaev almost 13 years ago
- Target version set to 2.4.0
- Assignee set to Alexander Shishkov
Updated by Andrey Kamaev over 12 years ago
- Category changed from highgui-images to highgui-video