Currently CImageLoaderJPG uses a global static Filename
variable to store the file jpg being currently loaded by libjpeg and then uses that to report error messages from the library. This causes issues when multiple jpg images are loaded concurrently from different threads as the output messages will most of the times have the wrong filename.
This patch adds a pointer to the stringc containing the filename to the irr_jpeg_error_mgr
struct and then uses that stringc as filename in the output_message function.
Thanks for report and patch. It's now fixed in svn trunk [r6220]
Related
Commit: [r6220]