summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2014-02-17 16:56:28 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2014-02-17 16:59:43 +0900
commite7e3f73bbe9f21dfb4ee1fc692e0fcfb12b0cdc5 (patch)
treed517ca3ccc0c0cbaacd391816653f79d7c78344f
parent18a7a95de371b4376b62e537ad536df116e19955 (diff)
Gif: Fix animated gifs when used as proxy sources
This looks like a typo: if (animated > 1) when animated is a... Bool! So, I am not entirely sure why this bug is visible in case of gif proxies, all it seems that the load_data function may be called multiple times when the object is visible. So gif close and reopen happen properly, and the first frame can be decoded.
-rw-r--r--src/modules/evas/loaders/gif/evas_image_load_gif.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/evas/loaders/gif/evas_image_load_gif.c b/src/modules/evas/loaders/gif/evas_image_load_gif.c
index e01e2760f4..3f6fbdb8e0 100644
--- a/src/modules/evas/loaders/gif/evas_image_load_gif.c
+++ b/src/modules/evas/loaders/gif/evas_image_load_gif.c
@@ -604,8 +604,7 @@ open_file:
604 604
605 // if we want to go backwards, we likely need/want to re-decode from the 605 // if we want to go backwards, we likely need/want to re-decode from the
606 // start as we have nothnig to build on 606 // start as we have nothnig to build on
607 if ((index > 0) && (index < loader->imgnum) && 607 if ((index > 0) && (index < loader->imgnum) && (animated->animated))
608 (animated->animated > 1))
609 { 608 {
610 if (loader->gif) DGifCloseFile(loader->gif); 609 if (loader->gif) DGifCloseFile(loader->gif);
611 if ((loader->fi.map) && (loader->f)) 610 if ((loader->fi.map) && (loader->f))