mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 13:11:13 +00:00
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.
This commit is contained in:
parent
e7444133cb
commit
3806847935
@ -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)
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user