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:
parent
511b09b3d6
commit
91e7361e08
@ -2812,6 +2812,7 @@ TriggerBox::fast_forward (CueEvents const & cues, samplepos_t transport_position
|
|||||||
if (pos >= transport_position || !prev) {
|
if (pos >= transport_position || !prev) {
|
||||||
/* nothing to do */
|
/* nothing to do */
|
||||||
DEBUG_TRACE (DEBUG::Triggers, string_compose ("%1: no trigger to be rolled\n", order()));
|
DEBUG_TRACE (DEBUG::Triggers, string_compose ("%1: no trigger to be rolled\n", order()));
|
||||||
|
_currently_playing = 0;
|
||||||
_locate_armed = false;
|
_locate_armed = false;
|
||||||
if (tracker) {
|
if (tracker) {
|
||||||
tracker->reset ();
|
tracker->reset ();
|
||||||
|
Loading…
Reference in New Issue
Block a user