Commit 7a1647b1 authored by Manish Singh's avatar Manish Singh Committed by Manish Singh
Browse files

Use a jpeg_error_mgr that lives within PreviewPersistent, instead of an

2004-11-25  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/jpeg.c: Use a jpeg_error_mgr that lives within
        PreviewPersistent, instead of an automatic variable in save_image.
        Fixes bug #159076.
parent 26be95eb
2004-11-25 Manish Singh <yosh@gimp.org>
* plug-ins/common/jpeg.c: Use a jpeg_error_mgr that lives within
PreviewPersistent, instead of an automatic variable in save_image.
Fixes bug #159076.
2004-11-25 Simon Budig <simon@gimp.org>
 
* modules/controller_linux_input.c: Add some sample code to retrieve
......
......@@ -222,6 +222,7 @@ typedef struct
typedef struct
{
struct jpeg_compress_struct cinfo;
struct jpeg_error_mgr jerr;
gint tile_height;
FILE *outfile;
gboolean has_alpha;
......@@ -1711,7 +1712,8 @@ save_image (const gchar *filename,
pp->abort_me = FALSE;
abort_me = &(pp->abort_me);
jerr.pub.error_exit = background_error_exit;
pp->cinfo.err = jpeg_std_error(&(pp->jerr));
pp->jerr.error_exit = background_error_exit;
g_idle_add ((GSourceFunc) background_jpeg_save, pp);
......
......@@ -222,6 +222,7 @@ typedef struct
typedef struct
{
struct jpeg_compress_struct cinfo;
struct jpeg_error_mgr jerr;
gint tile_height;
FILE *outfile;
gboolean has_alpha;
......@@ -1711,7 +1712,8 @@ save_image (const gchar *filename,
pp->abort_me = FALSE;
abort_me = &(pp->abort_me);
jerr.pub.error_exit = background_error_exit;
pp->cinfo.err = jpeg_std_error(&(pp->jerr));
pp->jerr.error_exit = background_error_exit;
g_idle_add ((GSourceFunc) background_jpeg_save, pp);
......
......@@ -222,6 +222,7 @@ typedef struct
typedef struct
{
struct jpeg_compress_struct cinfo;
struct jpeg_error_mgr jerr;
gint tile_height;
FILE *outfile;
gboolean has_alpha;
......@@ -1711,7 +1712,8 @@ save_image (const gchar *filename,
pp->abort_me = FALSE;
abort_me = &(pp->abort_me);
jerr.pub.error_exit = background_error_exit;
pp->cinfo.err = jpeg_std_error(&(pp->jerr));
pp->jerr.error_exit = background_error_exit;
g_idle_add ((GSourceFunc) background_jpeg_save, pp);
......
......@@ -222,6 +222,7 @@ typedef struct
typedef struct
{
struct jpeg_compress_struct cinfo;
struct jpeg_error_mgr jerr;
gint tile_height;
FILE *outfile;
gboolean has_alpha;
......@@ -1711,7 +1712,8 @@ save_image (const gchar *filename,
pp->abort_me = FALSE;
abort_me = &(pp->abort_me);
jerr.pub.error_exit = background_error_exit;
pp->cinfo.err = jpeg_std_error(&(pp->jerr));
pp->jerr.error_exit = background_error_exit;
g_idle_add ((GSourceFunc) background_jpeg_save, pp);
......
......@@ -222,6 +222,7 @@ typedef struct
typedef struct
{
struct jpeg_compress_struct cinfo;
struct jpeg_error_mgr jerr;
gint tile_height;
FILE *outfile;
gboolean has_alpha;
......@@ -1711,7 +1712,8 @@ save_image (const gchar *filename,
pp->abort_me = FALSE;
abort_me = &(pp->abort_me);
jerr.pub.error_exit = background_error_exit;
pp->cinfo.err = jpeg_std_error(&(pp->jerr));
pp->jerr.error_exit = background_error_exit;
g_idle_add ((GSourceFunc) background_jpeg_save, pp);
......
......@@ -222,6 +222,7 @@ typedef struct
typedef struct
{
struct jpeg_compress_struct cinfo;
struct jpeg_error_mgr jerr;
gint tile_height;
FILE *outfile;
gboolean has_alpha;
......@@ -1711,7 +1712,8 @@ save_image (const gchar *filename,
pp->abort_me = FALSE;
abort_me = &(pp->abort_me);
jerr.pub.error_exit = background_error_exit;
pp->cinfo.err = jpeg_std_error(&(pp->jerr));
pp->jerr.error_exit = background_error_exit;
g_idle_add ((GSourceFunc) background_jpeg_save, pp);
......
......@@ -222,6 +222,7 @@ typedef struct
typedef struct
{
struct jpeg_compress_struct cinfo;
struct jpeg_error_mgr jerr;
gint tile_height;
FILE *outfile;
gboolean has_alpha;
......@@ -1711,7 +1712,8 @@ save_image (const gchar *filename,
pp->abort_me = FALSE;
abort_me = &(pp->abort_me);
jerr.pub.error_exit = background_error_exit;
pp->cinfo.err = jpeg_std_error(&(pp->jerr));
pp->jerr.error_exit = background_error_exit;
g_idle_add ((GSourceFunc) background_jpeg_save, pp);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment