summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_ops.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-04-19 12:49:55 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-04-19 12:49:55 +0000
commitbcb2f4f12392739279634772570d38492ded23f7 (patch)
tree52eff3734e5ac484ad89740186c59e2548daca0d /gtk2_ardour/editor_ops.cc
parent0eee85f43b2435277c7cccda8e5145761bcb98a8 (diff)
fix freeze operation crashes by obtaining process buffers in freeze thread (and then dropping them) rather than just setting up the per-thread object that stores them
git-svn-id: svn://localhost/ardour2/branches/3.0@12029 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_ops.cc')
-rw-r--r--gtk2_ardour/editor_ops.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc
index fdca009185..6b48311b15 100644
--- a/gtk2_ardour/editor_ops.cc
+++ b/gtk2_ardour/editor_ops.cc
@@ -3393,9 +3393,10 @@ Editor::freeze_thread ()
SessionEvent::create_per_thread_pool ("freeze events", 64);
/* create per-thread buffers for process() tree to use */
current_interthread_info->process_thread.init ();
-
+ current_interthread_info->process_thread.get_buffers ();
clicked_routeview->audio_track()->freeze_me (*current_interthread_info);
current_interthread_info->done = true;
+ current_interthread_info->process_thread.drop_buffers();
return 0;
}