From 824bef68dc92cf31d3a346d257bdc72e007771d0 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 21 Oct 2025 21:11:22 -0600 Subject: [PATCH] triggers; do not reset stretcher for audio clips after capture We don't stretch/shrink captured clips by default, and this operation is not thread-safe --- libs/ardour/triggerbox.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/ardour/triggerbox.cc b/libs/ardour/triggerbox.cc index a5195b6214..30694b049e 100644 --- a/libs/ardour/triggerbox.cc +++ b/libs/ardour/triggerbox.cc @@ -1738,7 +1738,9 @@ AudioTrigger::set_region_in_worker_thread_internal (std::shared_ptr r, b * this may be reset momentarily with user-settings (UIState) from a d+d operation */ set_segment_tempo(_estimated_tempo); - setup_stretcher (); + if (!from_capture) { + setup_stretcher (); + } /* Given what we know about the tempo and duration, set the defaults * for the trigger properties.