From d65714f52073a3588d8cb615b21269d48c5c8651 Mon Sep 17 00:00:00 2001 From: ChunEon Park Date: Sun, 1 Mar 2015 17:59:52 +0900 Subject: [PATCH] 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 249269dc7d..11cf118ba9 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); } -- 2.34.1