summaryrefslogtreecommitdiff
path: root/src/lib/evas/common/evas_image_load.c
diff options
context:
space:
mode:
authorCedric Bail <cedric.bail@samsung.com>2013-05-02 18:41:26 +0900
committerCedric Bail <cedric.bail@samsung.com>2013-05-06 19:02:05 +0900
commit692938689592ac9c8a79c7c69f6825be1313bb48 (patch)
tree98d520821a17b1a9e543ef8dbc21fbc29bd38901 /src/lib/evas/common/evas_image_load.c
parent7d83e4204677a4501e1c7ec3ad08a2ec0d625dbc (diff)
evas: now move eina_file also out of the frame_duration API.
Diffstat (limited to 'src/lib/evas/common/evas_image_load.c')
-rw-r--r--src/lib/evas/common/evas_image_load.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/lib/evas/common/evas_image_load.c b/src/lib/evas/common/evas_image_load.c
index 043525d4cc..4ed3624e8c 100644
--- a/src/lib/evas/common/evas_image_load.c
+++ b/src/lib/evas/common/evas_image_load.c
@@ -420,7 +420,19 @@ evas_common_load_rgba_image_frame_duration_from_file(Image_Entry *ie, const int
420 evas_image_load_func = ie->info.loader; 420 evas_image_load_func = ie->info.loader;
421 evas_module_use((Evas_Module*) ie->info.module); 421 evas_module_use((Evas_Module*) ie->info.module);
422 if (evas_image_load_func->frame_duration) 422 if (evas_image_load_func->frame_duration)
423 return evas_image_load_func->frame_duration(ie, ie->file, start, frame_num); 423 {
424 Eina_File *f;
425 double r;
426
427 f = eina_file_open(ie->file, EINA_FALSE);
428 if (!f) return -1;
429
430 r = evas_image_load_func->frame_duration(f, &ie->animated, start, frame_num);
431
432 eina_file_close(f);
433
434 return r;
435 }
424 return -1; 436 return -1;
425} 437}
426 438