efl: Unbreak evas gif-loader animation support

Always returning -1 for the frame duration does not have the desired
effect. Fix the logic checking whether eina_file_open has succeeded.

Animated GIFs play way too fast without this.

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>

SVN revision: 83100
This commit is contained in:
Daniel Willmann 2013-01-22 19:00:08 +00:00 committed by Daniel Willmann
parent ba63fa7ed2
commit fecf68a886
3 changed files with 6 additions and 1 deletions

View File

@ -357,3 +357,7 @@
2013-01-15 ChunEon Park (Hermet) <hermet@hermet.pe.kr>
* Fix SIGFPE in evas map update if image size is 0.
2013-01-22 Daniel Willmann <d.willmann@samsung.com>
* Fix evas gif loader to return the correct frame duration

1
NEWS
View File

@ -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

View File

@ -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;