From fbe598d67212cf870319bfbe2055b4ea40ccf1c9 Mon Sep 17 00:00:00 2001 From: "jiin.moon" Date: Thu, 22 Jun 2017 16:32:53 +0900 Subject: [PATCH] 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 --- src/lib/ecore_wayland/ecore_wl_anim_vsync.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); } -- 2.7.4