From 30da8c00b5e58c5cc0d3db4ac8106ff901633d5f Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 4 Feb 2021 11:05:07 -0700 Subject: [PATCH] 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 --- libs/ardour/session_transport.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libs/ardour/session_transport.cc b/libs/ardour/session_transport.cc index 803012c3c1..59a21c47b7 100644 --- a/libs/ardour/session_transport.cc +++ b/libs/ardour/session_transport.cc @@ -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()) &&