exactness_player: do not test for delay_ms

that is a unsigned int, if its 0 the timer is called as fast as
possible. Not doing that breaks exactness.

@fix

Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org>
Differential Revision: https://phab.enlightenment.org/D11774
This commit is contained in:
Marcel Hollerbach 2020-05-05 10:53:15 +02:00 committed by Stefan Schmidt
parent 7d3e8fcad0
commit 924c6fec18
1 changed files with 2 additions and 2 deletions

View File

@ -511,7 +511,7 @@ _feed_event_timer_cb(void *data EINA_UNUSED)
if (act && act->type != EXACTNESS_ACTION_STABILIZE)
{
act = eina_list_data_get(_cur_event_list);
if (act && act->delay_ms)
if (act)
{
DBG(" %s timer_time=<%f>\n", __func__, act->delay_ms / 1000.0);
ecore_timer_add(act->delay_ms / 1000.0, _feed_event_timer_cb, NULL);
@ -552,7 +552,7 @@ _stabilization_timer_cb(void *data EINA_UNUSED)
if (_src_type != FTYPE_REMOTE && !_pause_request)
{
Exactness_Action *act = eina_list_data_get(_cur_event_list);
if (act && act->delay_ms)
if (act)
{
DBG(" %s timer_time=<%f>\n", __func__, act->delay_ms / 1000.0);
ecore_timer_add(act->delay_ms / 1000.0, _feed_event_timer_cb, NULL);