fix freeze operation crashes by obtaining process buffers in freeze thread (and then...
authorPaul Davis <paul@linuxaudiosystems.com>
Thu, 19 Apr 2012 12:49:55 +0000 (12:49 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Thu, 19 Apr 2012 12:49:55 +0000 (12:49 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@12029 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/editor_ops.cc

index fdca00918578ece9c994f291d2d5045a8034969f..6b48311b159bf04e1cc8fcb2f5650b9bca0bfefd 100644 (file)
@@ -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;
 }