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,10 +283,10 @@ gdk_pixbuf_loader_eat_header_write (GdkPixbufLoader *loader, guchar *buf, size_t
|
|||||||
|
|
||||||
priv->header_buf_offset += nbytes;
|
priv->header_buf_offset += nbytes;
|
||||||
|
|
||||||
if(priv->header_buf_offset >= LOADER_HEADER_SIZE) {
|
if(priv->header_buf_offset >= LOADER_HEADER_SIZE)
|
||||||
return gdk_pixbuf_loader_load_module(loader);
|
gdk_pixbuf_loader_load_module(loader);
|
||||||
} else
|
|
||||||
return nbytes;
|
return nbytes;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -283,10 +283,10 @@ gdk_pixbuf_loader_eat_header_write (GdkPixbufLoader *loader, guchar *buf, size_t
|
|||||||
|
|
||||||
priv->header_buf_offset += nbytes;
|
priv->header_buf_offset += nbytes;
|
||||||
|
|
||||||
if(priv->header_buf_offset >= LOADER_HEADER_SIZE) {
|
if(priv->header_buf_offset >= LOADER_HEADER_SIZE)
|
||||||
return gdk_pixbuf_loader_load_module(loader);
|
gdk_pixbuf_loader_load_module(loader);
|
||||||
} else
|
|
||||||
return nbytes;
|
return nbytes;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user