From 4048bcc6b614c70a8bfb4b7288d0625e0d0d8822 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 9 Mar 2022 17:47:13 +0100 Subject: [PATCH] Fix crash when freezing track The freeze threads needs a thread-local tempo-map to call Route::bounce_process which runs processors. --- gtk2_ardour/editor_ops.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index b1a06b8c23..f7dcd7b3e1 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -4022,6 +4022,7 @@ Editor::_freeze_thread (void* arg) void* Editor::freeze_thread () { + TempoMap::SharedPtr tmap (TempoMap::fetch()); /* create event pool because we may need to talk to the session */ SessionEvent::create_per_thread_pool ("freeze events", 64); /* create per-thread buffers for process() tree to use */