Player: don't play actions after the last shot

There is no good reason to play these actions, as no comparison is made
after.
master
Daniel Zaoui 4 years ago
parent f12aa93376
commit 8eafc850bc
  1. 7
      src/bin/player.c

@ -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
{

Loading…
Cancel
Save