[Xfce4-commits] <ristretto:ristretto-0.2> Decrease buffersize

Stephan Arts noreply at xfce.org
Thu Nov 3 12:36:03 CET 2011


Updating branch refs/heads/ristretto-0.2
         to 79068cc1d516508e648b3f2221531ca3717aa912 (commit)
       from 981ebd6b99e13961c7cebd0ed6325245a3a69614 (commit)

commit 79068cc1d516508e648b3f2221531ca3717aa912
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 254b9fe..2e6c30a 100644
--- a/src/image_viewer.c
+++ b/src/image_viewer.c
@@ -30,9 +30,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