From e588fe2057dd1c86fa9cc01968d8a84057f6a074 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sat, 8 May 2021 17:28:28 -0600 Subject: [PATCH] avoid crash when stopping with "abort" set to true, but after _last_roll_location was reset to -1 --- libs/ardour/session_transport.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libs/ardour/session_transport.cc b/libs/ardour/session_transport.cc index 0def70a4dc..eab9e36097 100644 --- a/libs/ardour/session_transport.cc +++ b/libs/ardour/session_transport.cc @@ -1397,9 +1397,10 @@ Session::non_realtime_stop (bool abort, int on_entry, bool& finished) * auto-return enabled */ - _transport_sample = _last_roll_location; - do_locate = true; - + if (_last_roll_location >= 0) { + _transport_sample = _last_roll_location; + do_locate = true; + } } }