diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2020-01-20 11:07:27 -0700 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2020-01-20 11:07:27 -0700 |
commit | ad82b443f47a6ee458b2dbb11deed6422a227b04 (patch) | |
tree | dcbf5d7d7f75296382024d31541787b85bb04a38 /libs/ardour/session_transport.cc | |
parent | 120be1576a02bd1431d345d4581e20e2301fc7d6 (diff) |
fix API and use of Session::force_locate()
Because of the addition of LocateTransportDisposition, this call was unconditionally forcing a roll during startup
Diffstat (limited to 'libs/ardour/session_transport.cc')
-rw-r--r-- | libs/ardour/session_transport.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libs/ardour/session_transport.cc b/libs/ardour/session_transport.cc index 2b630aa939..da6655a696 100644 --- a/libs/ardour/session_transport.cc +++ b/libs/ardour/session_transport.cc @@ -946,10 +946,11 @@ Session::request_locate (samplepos_t target_sample, LocateTransportDisposition l } void -Session::force_locate (samplepos_t target_sample, bool with_roll) +Session::force_locate (samplepos_t target_sample, LocateTransportDisposition ltd) { - SessionEvent *ev = new SessionEvent (with_roll ? SessionEvent::LocateRoll : SessionEvent::Locate, SessionEvent::Add, SessionEvent::Immediate, target_sample, 0, true); - DEBUG_TRACE (DEBUG::Transport, string_compose ("Request forced locate to %1\n", target_sample)); + SessionEvent *ev = new SessionEvent (SessionEvent::Locate, SessionEvent::Add, SessionEvent::Immediate, target_sample, 0, true); + ev->locate_transport_disposition = ltd; + DEBUG_TRACE (DEBUG::Transport, string_compose ("Request forced locate to %1 roll %2\n", target_sample, enum_2_string (ltd))); queue_event (ev); } |