diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-10-12 13:49:26 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-10-12 13:49:26 +0000 |
commit | e3bf16ec14edb14dd0f2f4ce04040a7705db671d (patch) | |
tree | 3968061b6382b72ea9a6c90ac2734774b5f437a2 /gdk-pixbuf/gdk-pixbuf-loader.c | |
parent | 1c0d2c75a6236bec732a7726103d2d90bc1f8e4b (diff) | |
download | gdk-pixbuf-e3bf16ec14edb14dd0f2f4ce04040a7705db671d.tar.gz |
Only call gdk_pixbuf_loader_eat_header_write() when count > 0. (#318589,
2005-10-12 Matthias Clasen <mclasen@redhat.com>
* gdk-pixbuf-loader.c (gdk_pixbuf_loader_write): Only call
gdk_pixbuf_loader_eat_header_write() when count > 0. (#318589,
Bogdan Nicula)
Diffstat (limited to 'gdk-pixbuf/gdk-pixbuf-loader.c')
-rw-r--r-- | gdk-pixbuf/gdk-pixbuf-loader.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdk-pixbuf/gdk-pixbuf-loader.c b/gdk-pixbuf/gdk-pixbuf-loader.c index 78689e58e..90281b074 100644 --- a/gdk-pixbuf/gdk-pixbuf-loader.c +++ b/gdk-pixbuf/gdk-pixbuf-loader.c @@ -485,7 +485,7 @@ gdk_pixbuf_loader_write (GdkPixbufLoader *loader, /* we expect it's not to be closed */ g_return_val_if_fail (priv->closed == FALSE, FALSE); - if (priv->image_module == NULL) + if (count > 0 && priv->image_module == NULL) { gint eaten; @@ -727,7 +727,9 @@ gdk_pixbuf_loader_close (GdkPixbufLoader *loader, /* we expect it's not closed */ g_return_val_if_fail (priv->closed == FALSE, TRUE); - /* We have less the 128 bytes in the image. Flush it, and keep going. */ + /* We have less the LOADER_HEADER_SIZE bytes in the image. + * Flush it, and keep going. + */ if (priv->image_module == NULL) { GError *tmp = NULL; |