diff --git a/ChangeLog b/ChangeLog index 10da6bbe3f..8b21c8ca47 100644 --- a/ChangeLog +++ b/ChangeLog @@ -357,3 +357,7 @@ 2013-01-15 ChunEon Park (Hermet) * Fix SIGFPE in evas map update if image size is 0. + +2013-01-22 Daniel Willmann + + * Fix evas gif loader to return the correct frame duration diff --git a/NEWS b/NEWS index e81a27e065..cd71349f35 100644 --- a/NEWS +++ b/NEWS @@ -124,3 +124,4 @@ Fixes: * Evas text utils: Fixed issue with no-harfbuzz bidi. * Fixed pixman surface alloc where allocated and image size differ. * Fixed x11 error sync issue with ecore_x_image_get() + * Fix evas gif loader to return the correct frame duration 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 93d56fbdd3..b39bd90522 100644 --- a/src/modules/evas/loaders/gif/evas_image_load_gif.c +++ b/src/modules/evas/loaders/gif/evas_image_load_gif.c @@ -1024,7 +1024,7 @@ evas_image_load_frame_duration_gif(Image_Entry *ie, const char *file, const int if (frame_num < 0) return -1; f = eina_file_open(file, EINA_FALSE); - if (f) return -1; + if (!f) return -1; egi.map = eina_file_map_all(f, EINA_FILE_SEQUENTIAL); if (!egi.map) goto on_error;