diff options
author | Matthias Clasen <maclas@gmx.de> | 2003-06-23 20:20:15 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2003-06-23 20:20:15 +0000 |
commit | 3806847935637569b0614e4af8979b3305108f6f (patch) | |
tree | 6b780908df7ffab1a5bde8f15d1ff5bc6a214e74 /gdk-pixbuf | |
parent | e7444133cb1886c36566ceaa91b92cbc81feaecd (diff) | |
download | gdk-pixbuf-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')
-rw-r--r-- | gdk-pixbuf/ChangeLog | 7 | ||||
-rw-r--r-- | gdk-pixbuf/io-gif.c | 12 |
2 files changed, 8 insertions, 11 deletions
diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index f5907cb34..873ce86ed 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -1,4 +1,9 @@ -2003-06-22 Matthias Clasen <matthias@localhost.localdomain> +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. + +2003-06-22 Matthias Clasen <maclas@gmx.de> * gdk-pixbuf-loader.[hc] (gdk_pixbuf_loader_new_with_mime_type): New function to obtain a loader for a specific mime type. (#105324, Dom Lachowicz) diff --git a/gdk-pixbuf/io-gif.c b/gdk-pixbuf/io-gif.c index c37251eb4..bc71a19f1 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); |