triggerbox: ensure _currently_playing reflects fast_forward logic

If we decide after fast forwarding that this TriggerBox has no triggers
active at the transport position, we must mark _currently_playing as null,
because otherwise the TB can still start the transport (in error) during
run()
This commit is contained in:
Paul Davis 2022-02-14 12:59:24 -07:00
parent 511b09b3d6
commit 91e7361e08

View File

@ -2812,6 +2812,7 @@ TriggerBox::fast_forward (CueEvents const & cues, samplepos_t transport_position
if (pos >= transport_position || !prev) {
/* nothing to do */
DEBUG_TRACE (DEBUG::Triggers, string_compose ("%1: no trigger to be rolled\n", order()));
_currently_playing = 0;
_locate_armed = false;
if (tracker) {
tracker->reset ();