From: jiin.moon Date: Thu, 22 Jun 2017 07:32:53 +0000 (+0900) Subject: ecore_anim: Fix don't call animator_cb X-Git-Tag: accepted/tizen/unified/20170711.181154~21 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F45%2F135445%2F4;p=platform%2Fupstream%2Fefl.git ecore_anim: Fix don't call animator_cb If the tick_queue_count has number less than zero, don't call the animator_cb. Change-Id: I03648f3f89237075dd6b2d248c549afb6e33b975 --- diff --git a/src/lib/ecore_wayland/ecore_wl_anim_vsync.c b/src/lib/ecore_wayland/ecore_wl_anim_vsync.c index 1a03b55..5ff36a2 100644 --- a/src/lib/ecore_wayland/ecore_wl_anim_vsync.c +++ b/src/lib/ecore_wayland/ecore_wl_anim_vsync.c @@ -351,7 +351,7 @@ _ecore_wl_animator_vsync_tick_quit(EINA_UNUSED void *data) { int i; - if (!tdm_thread) return; + if (!thq) return; _tick_send(-1); @@ -380,8 +380,8 @@ _ecore_wl_animator_vsync_tick_begin(EINA_UNUSED void *data) _tdm_tick_finished, _tdm_tick_finished, NULL, EINA_TRUE); + tick_queue_count = 0; } - tick_queue_count = 0; _tick_send(1); } else @@ -391,8 +391,8 @@ _ecore_wl_animator_vsync_tick_begin(EINA_UNUSED void *data) void _ecore_wl_animator_vsync_tick_end(EINA_UNUSED void *data) { + if (!thq) return; tdm_event_is_busy = 0; - tick_queue_count = 0; _tick_send(0); }