diff --git a/libs/ardour/session_transport.cc b/libs/ardour/session_transport.cc index dd0561f3d3..dcad949f2e 100644 --- a/libs/ardour/session_transport.cc +++ b/libs/ardour/session_transport.cc @@ -908,7 +908,7 @@ Session::request_preroll_record_trim (samplepos_t rec_in, samplecnt_t preroll) config.set_punch_out (false); samplepos_t pos = std::max ((samplepos_t)0, rec_in - preroll); - _preroll_record_trim_len = preroll; + _preroll_record_trim_len = rec_in - pos; maybe_enable_record (); request_locate (pos, MustRoll); set_requested_return_sample (rec_in);