13
0

Prevent locate while recording

This commit is contained in:
Robin Gareus 2024-06-14 15:43:03 +02:00
parent 1e491591c3
commit dbaead18bd
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -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;