summaryrefslogtreecommitdiff
path: root/gdk-pixbuf/io-gif.c
diff options
context:
space:
mode:
authorMatthias Clasen <maclas@gmx.de>2003-06-23 20:20:15 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2003-06-23 20:20:15 +0000
commit3806847935637569b0614e4af8979b3305108f6f (patch)
tree6b780908df7ffab1a5bde8f15d1ff5bc6a214e74 /gdk-pixbuf/io-gif.c
parente7444133cb1886c36566ceaa91b92cbc81feaecd (diff)
downloadgtk+-3806847935637569b0614e4af8979b3305108f6f.tar.gz
Remove the pointless refusal to load images with dubious disposal mode on
2003-06-23 Matthias Clasen <maclas@gmx.de> * io-gif.c (gif_get_frame_info): Remove the pointless refusal to load images with dubious disposal mode on the first frame. Just ignore it, as everybody else does.
Diffstat (limited to 'gdk-pixbuf/io-gif.c')
-rw-r--r--gdk-pixbuf/io-gif.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/gdk-pixbuf/io-gif.c b/gdk-pixbuf/io-gif.c
index c37251eb4b..bc71a19f1f 100644
--- a/gdk-pixbuf/io-gif.c
+++ b/gdk-pixbuf/io-gif.c
@@ -1227,17 +1227,9 @@ gif_get_frame_info (GifContext *context)
if (context->animation->frames == NULL &&
context->gif89.disposal == 3) {
/* First frame can't have "revert to previous" as its
- * dispose mode.
+ * dispose mode. Silently use "retain" instead.
*/
-
- context->state = GIF_DONE;
-
- g_set_error (context->error,
- GDK_PIXBUF_ERROR,
- GDK_PIXBUF_ERROR_CORRUPT_IMAGE,
- _("First frame of GIF image had 'revert to previous' as its disposal mode."));
-
- return -2;
+ context->gif89.disposal = 0;
}
context->frame_interlace = BitSet (buf[8], INTERLACE);