From dbaead18bd197b49e3d6661fdb8ec2c6e56f4ccb Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 14 Jun 2024 15:43:03 +0200 Subject: [PATCH] Prevent locate while recording --- libs/ardour/session_transport.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/ardour/session_transport.cc b/libs/ardour/session_transport.cc index 2f5ac62651..941da0cea9 100644 --- a/libs/ardour/session_transport.cc +++ b/libs/ardour/session_transport.cc @@ -916,6 +916,10 @@ Session::request_stop (bool abort, bool clear_state, TransportRequestSource orig void Session::request_locate (samplepos_t target_sample, bool force, LocateTransportDisposition ltd, TransportRequestSource origin) { + if (actively_recording ()) { + return; + } + if (synced_to_engine()) { _engine.transport_locate (target_sample); return;