Fix #571: Huge performance hit when enabling animation
authorTomasz Golinski <tomaszg@math.uwb.edu.pl>
Wed, 3 Jan 2018 16:10:35 +0000 (16:10 +0000)
committerColin Clark <colin.clark@cclark.uk>
Wed, 3 Jan 2018 16:10:35 +0000 (16:10 +0000)
https://github.com/BestImageViewer/geeqie/issues/571

Check for  animation only on gif files.

src/layout_image.c

index ade67a3..39a5800 100644 (file)
@@ -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)
                        {