summaryrefslogtreecommitdiff
path: root/libs/ardour/butler.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2020-01-23 14:25:01 -0700
committerPaul Davis <paul@linuxaudiosystems.com>2020-01-23 14:25:38 -0700
commit7da3305a04ce57b318a99bb966710d3a156c0061 (patch)
tree255f3e38f3f56dd5abb67888b92631d16e7d4f0d /libs/ardour/butler.cc
parent5949fec9879967ee555a38c205227019c3134c66 (diff)
use Session::locate_initiated(), appropriately
Diffstat (limited to 'libs/ardour/butler.cc')
-rw-r--r--libs/ardour/butler.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/libs/ardour/butler.cc b/libs/ardour/butler.cc
index c28d630fff..b4bf5a83be 100644
--- a/libs/ardour/butler.cc
+++ b/libs/ardour/butler.cc
@@ -204,6 +204,18 @@ Butler::thread_work ()
DEBUG_TRACE (DEBUG::Butler, string_compose ("do transport work @ %1\n", g_get_monotonic_time()));
_session.butler_transport_work ();
DEBUG_TRACE (DEBUG::Butler, string_compose ("\ttransport work complete @ %1, twr = %2\n", g_get_monotonic_time(), transport_work_requested()));
+
+ if (_session.locate_initiated()) {
+ /* we have done the "stop" required for a
+ locate (DeclickToLocate state in TFSM), but
+ once that finishes we're going to do a locate,
+ so do not bother with buffer refills at this
+ time.
+ */
+ DEBUG_TRACE (DEBUG::Butler, string_compose ("\tlocate pending, so just pause @ %1 till woken again\n", g_get_monotonic_time()));
+ paused.signal ();
+ continue;
+ }
}
sampleoffset_t audition_seek;