forked from AuroraMiddleware/gtk
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;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user