Player: don't play actions after the last shot

There is no good reason to play these actions, as no comparison is made
after.
This commit is contained in:
Daniel Zaoui 2018-05-16 14:51:49 +03:00
parent f12aa93376
commit 8eafc850bc
1 changed files with 7 additions and 0 deletions

View File

@ -721,6 +721,8 @@ _src_open()
{
if (_src_type != FTYPE_REMOTE)
{
Eina_List *itr, *itr2;
Exactness_Action *act;
_printf(2, "<%s> Source file is <%s>\n", __func__, _src_filename);
if (_src_type == FTYPE_EXU)
{
@ -731,6 +733,11 @@ _src_open()
_src_unit = legacy_rec_file_read(_src_filename);
}
if (!_src_unit) return EINA_FALSE;
EINA_LIST_REVERSE_FOREACH_SAFE(_src_unit->actions, itr, itr2, act)
{
if (act->type == EXACTNESS_ACTION_TAKE_SHOT) break;
_src_unit->actions = eina_list_remove(_src_unit->actions, act);
}
}
else
{