ecore_anim: Fix don't call animator_cb 45/135445/4
authorjiin.moon <jiin.moon@samsung.com>
Thu, 22 Jun 2017 07:32:53 +0000 (16:32 +0900)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Fri, 23 Jun 2017 03:52:30 +0000 (03:52 +0000)
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

index 1a03b55..5ff36a2 100644 (file)
@@ -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);
 }