summaryrefslogtreecommitdiff
path: root/src/modules/evas/image_savers
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2015-07-15 20:05:23 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2015-07-15 20:05:23 +0100
commit5beb47aa4d65d0be9d75550511dd184e9e69b4d8 (patch)
tree3eaf0bd4850a8aaf7b0bef763981c33e6ab016d3 /src/modules/evas/image_savers
parent84c7751e195ea29efffbe55eaa732e739402a04a (diff)
image_savers/jpeg: actually use normal jmp_buf/setjmp/longjmp
Diffstat (limited to 'src/modules/evas/image_savers')
-rw-r--r--src/modules/evas/image_savers/jpeg/evas_image_save_jpeg.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/evas/image_savers/jpeg/evas_image_save_jpeg.c b/src/modules/evas/image_savers/jpeg/evas_image_save_jpeg.c
index fc161855ce..e9034cbf7f 100644
--- a/src/modules/evas/image_savers/jpeg/evas_image_save_jpeg.c
+++ b/src/modules/evas/image_savers/jpeg/evas_image_save_jpeg.c
@@ -14,8 +14,8 @@ static Evas_Image_Save_Func evas_image_save_jpeg_func =
14 14
15struct _JPEG_error_mgr 15struct _JPEG_error_mgr
16{ 16{
17 struct jpeg_error_mgr pub; 17 struct jpeg_error_mgr pub;
18 sigjmp_buf setjmp_buffer; 18 jmp_buf setjmp_buffer;
19}; 19};
20typedef struct _JPEG_error_mgr *emptr; 20typedef struct _JPEG_error_mgr *emptr;
21 21
@@ -26,7 +26,7 @@ _JPEGFatalErrorHandler(j_common_ptr cinfo)
26 emptr errmgr; 26 emptr errmgr;
27 27
28 errmgr = (emptr) cinfo->err; 28 errmgr = (emptr) cinfo->err;
29 siglongjmp(errmgr->setjmp_buffer, 1); 29 longjmp(errmgr->setjmp_buffer, 1);
30 return; 30 return;
31} 31}
32 32
@@ -73,7 +73,7 @@ save_image_jpeg(RGBA_Image *im, const char *file, int quality)
73 jerr.pub.error_exit = _JPEGFatalErrorHandler; 73 jerr.pub.error_exit = _JPEGFatalErrorHandler;
74 jerr.pub.emit_message = _JPEGErrorHandler2; 74 jerr.pub.emit_message = _JPEGErrorHandler2;
75 jerr.pub.output_message = _JPEGErrorHandler; 75 jerr.pub.output_message = _JPEGErrorHandler;
76 if (sigsetjmp(jerr.setjmp_buffer, 1)) 76 if (sigjmp(jerr.setjmp_buffer))
77 { 77 {
78 jpeg_destroy_compress(&cinfo); 78 jpeg_destroy_compress(&cinfo);
79 fclose(f); 79 fclose(f);