[gthumb] fixed gth_pixbuf_new_from_file partially loading images
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] fixed gth_pixbuf_new_from_file partially loading images
- Date: Sun, 21 Oct 2012 10:46:06 +0000 (UTC)
commit 9550f5c218b445f66d411dc5ce9a5ae7de440772
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sun Oct 21 12:37:25 2012 +0200
fixed gth_pixbuf_new_from_file partially loading images
there is no way to respect the requested_size option here, just ignore it.
gthumb/pixbuf-io.c | 9 ---------
1 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/gthumb/pixbuf-io.c b/gthumb/pixbuf-io.c
index 2a1f625..8715364 100644
--- a/gthumb/pixbuf-io.c
+++ b/gthumb/pixbuf-io.c
@@ -60,15 +60,6 @@ load_from_stream (GdkPixbufLoader *loader,
res = TRUE;
while (1) {
- if (requested_size > 0) {
- if (gdk_pixbuf_loader_get_pixbuf (loader) != NULL) {
- pixbuf = gdk_pixbuf_loader_get_pixbuf (loader);
- g_object_ref (pixbuf);
- gdk_pixbuf_loader_close (loader, NULL);
- return pixbuf;
- }
- }
-
n_read = g_input_stream_read (stream,
buffer,
sizeof (buffer),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]