[Xfce4-commits] <ristretto:ristretto-0.1> Decrease buffersize
Stephan Arts
noreply at xfce.org
Thu Nov 3 12:36:02 CET 2011
Updating branch refs/heads/ristretto-0.1
to a925d8bcd2a11c11ec9926eee6b9a35eae5a101f (commit)
from 4e71e8eded8680b1458a00de3afe9a2b49910bc5 (commit)
commit a925d8bcd2a11c11ec9926eee6b9a35eae5a101f
Author: Stephan Arts <stephan at xfce.org>
Date: Wed Oct 19 06:46:42 2011 +0200
Decrease buffersize
Some JPEG images cause the JPEG pixbufloader to fail if the buffer
is too large. (Thanks to Michael Orlitzky <michael at orlitzky.com>)
src/image_viewer.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/image_viewer.c b/src/image_viewer.c
index 56d0451..2de4fda 100644
--- a/src/image_viewer.c
+++ b/src/image_viewer.c
@@ -29,9 +29,11 @@
#include "settings.h"
#include "marshal.h"
+/* Do not make this buffer too large,
+ * this breaks some pixbufloaders.
+ */
#ifndef RSTTO_IMAGE_VIEWER_BUFFER_SIZE
-/* #define RSTTO_IMAGE_VIEWER_BUFFER_SIZE 1024 */
-#define RSTTO_IMAGE_VIEWER_BUFFER_SIZE 131072
+#define RSTTO_IMAGE_VIEWER_BUFFER_SIZE 4096
#endif
#ifndef RSTTO_MAX_SCALE
More information about the Xfce4-commits
mailing list