hermet pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=d65714f52073a3588d8cb615b21269d48c5c8651

commit d65714f52073a3588d8cb615b21269d48c5c8651
Author: ChunEon Park <[email protected]>
Date:   Sun Mar 1 17:59:52 2015 +0900

    ecore/ecore_audio: fix timer control logically wrong.
    
    @fix
---
 src/lib/ecore_audio/ecore_audio_pulse_ml.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/ecore_audio/ecore_audio_pulse_ml.c 
b/src/lib/ecore_audio/ecore_audio_pulse_ml.c
index 249269d..11cf118 100644
--- a/src/lib/ecore_audio/ecore_audio_pulse_ml.c
+++ b/src/lib/ecore_audio/ecore_audio_pulse_ml.c
@@ -129,7 +129,7 @@ _ecore_time_wrapper(void *data)
    pa_time_event *event = (pa_time_event *)data;
 
    event->callback(event->mainloop, event, &event->tv, event->userdata);
-
+   event->timer = NULL;
    return ECORE_CALLBACK_CANCEL;
 }
 
@@ -182,7 +182,7 @@ _ecore_pa_time_restart(pa_time_event *event, const struct 
timeval *tv)
      }
 
    interval = (tv->tv_sec - now.tv_sec) + (tv->tv_usec - now.tv_usec) / 1000;
-   if (event->timer)
+   if (!event->timer)
      {
         event->timer = ecore_timer_add(interval, _ecore_time_wrapper, event);
      }

-- 


Reply via email to