From 91e7361e08b777f25d4de8a6a24635a0d5a96a5e Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 14 Feb 2022 12:59:24 -0700 Subject: [PATCH] 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() --- libs/ardour/triggerbox.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/ardour/triggerbox.cc b/libs/ardour/triggerbox.cc index 95e9d5e0a6..98a3c45da9 100644 --- a/libs/ardour/triggerbox.cc +++ b/libs/ardour/triggerbox.cc @@ -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 ();