Mercurial > hg > forks > geeqie
changeset 2695:226c02528774
Fix #571: Huge performance hit when enabling animation
https://github.com/BestImageViewer/geeqie/issues/571
Check for animation only on gif files.
author | Tomasz Golinski <tomaszg@math.uwb.edu.pl> |
---|---|
date | Wed, 03 Jan 2018 16:10:35 +0000 |
parents | 4126aaeef776 |
children | f090fbf9362f |
files | src/layout_image.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/layout_image.c Mon Jan 01 19:12:33 2018 +0000 +++ b/src/layout_image.c Wed Jan 03 16:10:35 2018 +0000 @@ -342,7 +342,7 @@ { 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) {