|
|
|
@ -121,7 +121,6 @@ static int _ignore_evas_creation = 0; |
|
|
|
|
static Eina_List *_evas_list = NULL; |
|
|
|
|
|
|
|
|
|
static Eina_List *_cur_event_list = NULL; |
|
|
|
|
static unsigned int _last_event_time = 0; |
|
|
|
|
|
|
|
|
|
static int _cur_shot_id = 0; |
|
|
|
|
static Eina_Bool _scan_objects = EINA_FALSE; |
|
|
|
@ -388,7 +387,6 @@ _feed_event_timer_cb(void *data EINA_UNUSED) |
|
|
|
|
{ |
|
|
|
|
Exactness_Action *act = eina_list_data_get(_cur_event_list); |
|
|
|
|
_feed_event(act->type, act->n_evas, act->data); |
|
|
|
|
time_t evt_time = act->timestamp; |
|
|
|
|
|
|
|
|
|
_cur_event_list = eina_list_next(_cur_event_list); |
|
|
|
|
|
|
|
|
@ -398,21 +396,8 @@ _feed_event_timer_cb(void *data EINA_UNUSED) |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
double timer_time; |
|
|
|
|
Exactness_Action *cur_act = eina_list_data_get(_cur_event_list); |
|
|
|
|
unsigned int current_event_time = cur_act->timestamp; |
|
|
|
|
_last_event_time = evt_time; |
|
|
|
|
|
|
|
|
|
if (current_event_time < _last_event_time) /* Could happen with refeed event */ |
|
|
|
|
current_event_time = _last_event_time; |
|
|
|
|
|
|
|
|
|
_printf(2, " %s _last_event_time=<%u> current_event_time=<%u>\n", __func__, _last_event_time, current_event_time); |
|
|
|
|
timer_time = (current_event_time - _last_event_time) / 1000.0; |
|
|
|
|
|
|
|
|
|
if (!_last_event_time) timer_time = 0.0; |
|
|
|
|
|
|
|
|
|
_printf(2, " %s timer_time=<%f>\n", __func__, timer_time); |
|
|
|
|
ecore_timer_add(timer_time, _feed_event_timer_cb, NULL); |
|
|
|
|
_printf(2, " %s timer_time=<%f>\n", __func__, act->delay_ms / 1000.0); |
|
|
|
|
ecore_timer_add(act->delay_ms / 1000.0, _feed_event_timer_cb, NULL); |
|
|
|
|
} |
|
|
|
|
return ECORE_CALLBACK_CANCEL; |
|
|
|
|
} |
|
|
|
@ -577,7 +562,6 @@ _src_open() |
|
|
|
|
{ |
|
|
|
|
if (_src_type != FTYPE_REMOTE) |
|
|
|
|
{ |
|
|
|
|
double diff_time = 0; /* Time to wait before feeding the first event */ |
|
|
|
|
_printf(2, "<%s> Source file is <%s>\n", __func__, _src_filename); |
|
|
|
|
if (_src_type == FTYPE_EXU) |
|
|
|
|
{ |
|
|
|
@ -591,15 +575,10 @@ _src_open() |
|
|
|
|
_cur_event_list = _src_unit->actions; |
|
|
|
|
Exactness_Action *act = eina_list_data_get(_cur_event_list); |
|
|
|
|
|
|
|
|
|
/* Calculate the time to wait before feeding the first event */ |
|
|
|
|
unsigned int current_event_time = act->timestamp; |
|
|
|
|
|
|
|
|
|
_printf(2, "%s current_event_time=<%u>\n", __func__, current_event_time); |
|
|
|
|
|
|
|
|
|
if (current_event_time) |
|
|
|
|
if (act->delay_ms) |
|
|
|
|
{ |
|
|
|
|
_printf(2, " Waiting <%f>\n", diff_time); |
|
|
|
|
ecore_timer_add(current_event_time / 1000.0, _feed_event_timer_cb, NULL); |
|
|
|
|
_printf(2, " Waiting <%f>\n", act->delay_ms / 1000.0); |
|
|
|
|
ecore_timer_add(act->delay_ms / 1000.0, _feed_event_timer_cb, NULL); |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|