Commit b953e64b authored by Elliot Lee's avatar Elliot Lee
Browse files

Always return the amount eaten, rather than the full header size.



Always return the amount eaten, rather than the full header size.
parent 966ae7b6
......@@ -283,10 +283,10 @@ 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
return nbytes;
if(priv->header_buf_offset >= LOADER_HEADER_SIZE)
gdk_pixbuf_loader_load_module(loader);
return nbytes;
}
/**
......
......@@ -283,10 +283,10 @@ 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
return nbytes;
if(priv->header_buf_offset >= LOADER_HEADER_SIZE)
gdk_pixbuf_loader_load_module(loader);
return nbytes;
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment