correct problem with some locates that would keep rolling after they are finished

This commit is contained in:
Paul Davis 2019-09-20 16:52:13 -06:00
parent d7c91b5322
commit 228fbd3192

View File

@ -265,7 +265,11 @@ Session::do_locate (samplepos_t target_sample, bool with_roll, bool with_flush,
*
*/
bool transport_was_stopped = !transport_rolling();
/* 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->stopped();
if (!transport_was_stopped &&
(!auto_play_legal || !config.get_auto_play()) &&