13
0

fix (??) issue with transport control (stop after locate with no audio tracks)

Unclear why previous code used !tfsm->rolling() rather than tfsm->stopped() but this
now works as intended
This commit is contained in:
Paul Davis 2021-02-04 11:05:07 -07:00
parent acfa04d700
commit 30da8c00b5

View File

@ -218,11 +218,10 @@ Session::locate (samplepos_t target_sample, bool with_roll, bool with_flush, boo
*
*/
/* it is important here that we use the internal state of the transport
FSM, not the public facing result of ::transport_rolling()
*/
bool transport_was_stopped = !_transport_fsm->rolling();
bool transport_was_stopped = _transport_fsm->stopped();
if (!transport_was_stopped &&
(!auto_play_legal || !config.get_auto_play()) &&