use globalWarningStream()

This commit is contained in:
Garux
2018-03-21 04:12:06 +03:00
parent 54a98ed5e8
commit b1e2f26124
24 changed files with 47 additions and 47 deletions

View File

@@ -356,7 +356,7 @@ static Image* LoadJPGBuff_( const void *src_buffer, int src_size ){
jerr.pub.error_exit = my_jpeg_error_exit;
if ( setjmp( jerr.setjmp_buffer ) ) { //< TODO: use c++ exceptions instead of setjmp/longjmp to handle errors
globalErrorStream() << "WARNING: JPEG library error: " << errormsg << "\n";
globalWarningStream() << "WARNING: JPEG library error: " << errormsg << "\n";
jpeg_destroy_decompress( &cinfo );
return 0;
}