Disable jpg logging to make it thread safe
This commit is contained in:
parent
0b2a691b24
commit
c25c12e7a5
@ -16,9 +16,6 @@ namespace irr
|
||||
namespace video
|
||||
{
|
||||
|
||||
// Static members
|
||||
io::path CImageLoaderJPG::Filename;
|
||||
|
||||
//! constructor
|
||||
CImageLoaderJPG::CImageLoaderJPG()
|
||||
{
|
||||
@ -108,10 +105,10 @@ void CImageLoaderJPG::error_exit (j_common_ptr cinfo)
|
||||
void CImageLoaderJPG::output_message(j_common_ptr cinfo)
|
||||
{
|
||||
// display the error message.
|
||||
c8 temp1[JMSG_LENGTH_MAX];
|
||||
(*cinfo->err->format_message)(cinfo, temp1);
|
||||
core::stringc errMsg("JPEG FATAL ERROR in ");
|
||||
errMsg += core::stringc(Filename);
|
||||
//c8 temp1[JMSG_LENGTH_MAX];
|
||||
//(*cinfo->err->format_message)(cinfo, temp1);
|
||||
//core::stringc errMsg("JPEG FATAL ERROR in ");
|
||||
//errMsg += core::stringc(Filename);
|
||||
//os::Printer::log(errMsg.c_str(),temp1, ELL_ERROR);
|
||||
}
|
||||
#endif // _IRR_COMPILE_WITH_LIBJPEG_
|
||||
@ -145,8 +142,6 @@ IImage* CImageLoaderJPG::loadImage(io::IReadFile* file, bool skip_checking) cons
|
||||
if (!file)
|
||||
return 0;
|
||||
|
||||
Filename = file->getFileName();
|
||||
|
||||
u8 **rowPtr=0;
|
||||
u8* input = new u8[file->getSize()];
|
||||
file->read(input, file->getSize());
|
||||
|
@ -100,9 +100,6 @@ private:
|
||||
data has been read. Often a no-op. */
|
||||
static void term_source (j_decompress_ptr cinfo);
|
||||
|
||||
// Copy filename to have it around for error-messages
|
||||
static io::path Filename;
|
||||
|
||||
#endif // _IRR_COMPILE_WITH_LIBJPEG_
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user