Output error message when dealing with jpeg errors
This commit is contained in:
parent
3cb645f507
commit
b67cff089c
1 changed files with 1 additions and 0 deletions
|
|
@ -32,6 +32,7 @@ struct my_error_mgr : public jpeg_error_mgr {
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
||||||
static void my_error_exit(j_common_ptr cinfo) {
|
static void my_error_exit(j_common_ptr cinfo) {
|
||||||
|
(*cinfo->err->output_message)(cinfo);
|
||||||
my_error_mgr* myerr = (my_error_mgr*)cinfo->err;
|
my_error_mgr* myerr = (my_error_mgr*)cinfo->err;
|
||||||
longjmp(myerr->setjmp_buffer, 1);
|
longjmp(myerr->setjmp_buffer, 1);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue