From 15276b648eb6f3e701f0afc2022f9a584e78ffab Mon Sep 17 00:00:00 2001 From: Rafael Antognolli Date: Tue, 21 Apr 2009 23:05:06 +0000 Subject: [PATCH] Some fixes on the emotion plugin. SVN revision: 40278 --- legacy/ethumb/src/plugins/emotion/emotion.c | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/legacy/ethumb/src/plugins/emotion/emotion.c b/legacy/ethumb/src/plugins/emotion/emotion.c index b2d08fa138..cd5d748626 100644 --- a/legacy/ethumb/src/plugins/emotion/emotion.c +++ b/legacy/ethumb/src/plugins/emotion/emotion.c @@ -4,27 +4,18 @@ #include #include -#include #include #include -#include - -struct cb_data { - Ethumb_File *ef; - ethumb_generate_callback_t finished_cb; - void *data; -}; static Evas_Object *_emotion = NULL; static void _shutdown(Ethumb_Plugin *plugin) { - ecore_shutdown(); } static void -_frame_decoded_cb(void *data, Evas_Object *o, void *event_info) +_frame_resized_cb(void *data, Evas_Object *o, void *event_info) { Ethumb_File *ef = data; Ethumb *e = ef->ethumb; @@ -40,7 +31,7 @@ _frame_decoded_cb(void *data, Evas_Object *o, void *event_info) ethumb_image_save(ef); - evas_object_smart_callback_del(o, "frame_decode", _frame_decoded_cb); + evas_object_smart_callback_del(o, "frame_resize", _frame_resized_cb); emotion_object_play_set(o, 0); evas_object_del(o); ethumb_finished_callback_call(ef); @@ -67,7 +58,7 @@ _generate_thumb(Ethumb_File *ef) emotion_object_position_set(o, e->video.time); emotion_object_play_set(o, 1); - evas_object_smart_callback_add(o, "frame_decode", _frame_decoded_cb, ef); + evas_object_smart_callback_add(o, "frame_resize", _frame_resized_cb, ef); evas_object_show(o); @@ -87,7 +78,5 @@ ethumb_plugin_init(void) _shutdown }; - ecore_init(); - return &plugin; }