From: jeon Date: Mon, 28 Oct 2019 06:55:50 +0000 (+0900) Subject: pui_ani: renew a timer instead of re-make a timer X-Git-Tag: accepted/tizen/5.5/unified/20200102.014046^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F22%2F220722%2F1;p=platform%2Fcore%2Fuifw%2Flibpui.git pui_ani: renew a timer instead of re-make a timer Change-Id: I7c6e7d81fef8a8b0a773544425a1438fe32e4ad9 --- diff --git a/src/PUI_ani.c b/src/PUI_ani.c index e42a4cc..36ea036 100644 --- a/src/PUI_ani.c +++ b/src/PUI_ani.c @@ -155,8 +155,6 @@ static Eina_Bool _pui_ani_frame_cb(void *data) { Eina_Bool ret; - Ecore_Timer *timer = NULL; - pui_ani_t *ani = (pui_ani_t *)data; if (!PUI_MAGIC_CHECK(ani, PUI_MAGIC_ANI_T)) @@ -193,20 +191,7 @@ _pui_ani_frame_cb(void *data) if (ret && PUI_ANI_STATUS_STARTED == ani->status) pui_ani_status_update(ani, PUI_ANI_STATUS_RUNNING); - ecore_timer_del(ani->frame_cb_timer); - ani->frame_cb_timer = NULL; - - timer = ecore_timer_add(ani->frame_interval, _pui_ani_frame_cb, ani); - - if (!timer) - { - pui_err("Failed to add ecore timer !\n"); - return 0; - } - - ani->frame_cb_timer = timer; - - return EINA_FALSE; + return ECORE_CALLBACK_RENEW; } pui_bool