From: Tomasz Golinski Date: Wed, 3 Jan 2018 16:10:35 +0000 (+0000) Subject: Fix #571: Huge performance hit when enabling animation X-Git-Tag: v1.5~191 X-Git-Url: http://geeqie.org/cgi-bin/gitweb.cgi?p=geeqie.git;a=commitdiff_plain;h=d599fbc9761f0aed6be21d1e303c6a72f6307335 Fix #571: Huge performance hit when enabling animation https://github.com/BestImageViewer/geeqie/issues/571 Check for animation only on gif files. --- diff --git a/src/layout_image.c b/src/layout_image.c index ade67a39..39a58009 100644 --- a/src/layout_image.c +++ b/src/layout_image.c @@ -342,7 +342,7 @@ static gboolean layout_image_animate_check(LayoutWindow *lw) { if (!layout_valid(&lw)) return FALSE; - if(!lw->options.animate || lw->image->image_fd == NULL) + if(!lw->options.animate || lw->image->image_fd == NULL || lw->image->image_fd->extension == NULL || g_ascii_strcasecmp(lw->image->image_fd->extension,".GIF")!=0) { if(lw->animation) {