From 7da3305a04ce57b318a99bb966710d3a156c0061 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 23 Jan 2020 14:25:01 -0700 Subject: use Session::locate_initiated(), appropriately --- libs/ardour/session_transport.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libs/ardour/session_transport.cc') diff --git a/libs/ardour/session_transport.cc b/libs/ardour/session_transport.cc index d930b140b0..b8ff0a7e04 100644 --- a/libs/ardour/session_transport.cc +++ b/libs/ardour/session_transport.cc @@ -1439,7 +1439,7 @@ Session::non_realtime_stop (bool abort, int on_entry, bool& finished) * location, or just back to the start of the last roll. */ - if (transport_master_no_external_or_using_engine() && !(ptw & PostTransportLocate)) { + if (transport_master_no_external_or_using_engine() && !locate_initiated()) { bool do_locate = false; @@ -1517,8 +1517,10 @@ Session::non_realtime_stop (bool abort, int on_entry, bool& finished) } } - { + if (!_transport_fsm->declicking_for_locate()) { + DEBUG_TRACE (DEBUG::Transport, X_("Butler PTW: locate\n")); + for (RouteList::iterator i = r->begin(); i != r->end(); ++i) { DEBUG_TRACE (DEBUG::Transport, string_compose ("Butler PTW: locate on %1\n", (*i)->name())); (*i)->non_realtime_locate (_transport_sample); @@ -1529,9 +1531,7 @@ Session::non_realtime_stop (bool abort, int on_entry, bool& finished) return; } } - } - { VCAList v = _vca_manager->vcas (); for (VCAList::const_iterator i = v.begin(); i != v.end(); ++i) { (*i)->non_realtime_locate (_transport_sample); -- cgit v1.2.3