From 3806847935637569b0614e4af8979b3305108f6f Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 23 Jun 2003 20:20:15 +0000 Subject: [PATCH] Remove the pointless refusal to load images with dubious disposal mode on 2003-06-23 Matthias Clasen * 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. --- gdk-pixbuf/ChangeLog | 7 ++++++- gdk-pixbuf/io-gif.c | 12 ++---------- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index f5907cb34a..873ce86edc 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -1,4 +1,9 @@ -2003-06-22 Matthias Clasen +2003-06-23 Matthias Clasen + + * 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 * 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 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);