mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
Always return the amount eaten, rather than the full header size.
Always return the amount eaten, rather than the full header size.
This commit is contained in:
parent
966ae7b613
commit
b953e64bc6
@ -283,9 +283,9 @@ gdk_pixbuf_loader_eat_header_write (GdkPixbufLoader *loader, guchar *buf, size_t
|
||||
|
||||
priv->header_buf_offset += nbytes;
|
||||
|
||||
if(priv->header_buf_offset >= LOADER_HEADER_SIZE) {
|
||||
return gdk_pixbuf_loader_load_module(loader);
|
||||
} else
|
||||
if(priv->header_buf_offset >= LOADER_HEADER_SIZE)
|
||||
gdk_pixbuf_loader_load_module(loader);
|
||||
|
||||
return nbytes;
|
||||
}
|
||||
|
||||
|
@ -283,9 +283,9 @@ gdk_pixbuf_loader_eat_header_write (GdkPixbufLoader *loader, guchar *buf, size_t
|
||||
|
||||
priv->header_buf_offset += nbytes;
|
||||
|
||||
if(priv->header_buf_offset >= LOADER_HEADER_SIZE) {
|
||||
return gdk_pixbuf_loader_load_module(loader);
|
||||
} else
|
||||
if(priv->header_buf_offset >= LOADER_HEADER_SIZE)
|
||||
gdk_pixbuf_loader_load_module(loader);
|
||||
|
||||
return nbytes;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user