From 8eafc850bc7df2c3aed7d41c1aaf94c7b5677fca Mon Sep 17 00:00:00 2001 From: Daniel Zaoui Date: Wed, 16 May 2018 14:51:49 +0300 Subject: [PATCH] Player: don't play actions after the last shot There is no good reason to play these actions, as no comparison is made after. --- src/bin/player.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/bin/player.c b/src/bin/player.c index 4b84586..48a8f9d 100644 --- a/src/bin/player.c +++ b/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 {