summaryrefslogtreecommitdiff
path: root/libs/ardour/process_thread.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-06-16 02:53:50 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-06-16 02:53:50 +0000
commit223a5e217ada4668cab1e6d75f6ca38222b8946c (patch)
tree1b3f1278a4d999d29faa88c7a3a73cc8ef275482 /libs/ardour/process_thread.cc
parent5f42daa272e04d603a9e27b8f3a65b2cd9404896 (diff)
extra insurance against ProcessThread::init() being called more than once
git-svn-id: svn://localhost/ardour2/branches/3.0@12737 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/process_thread.cc')
-rw-r--r--libs/ardour/process_thread.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/ardour/process_thread.cc b/libs/ardour/process_thread.cc
index ae7466c7f0..5d3b54cb13 100644
--- a/libs/ardour/process_thread.cc
+++ b/libs/ardour/process_thread.cc
@@ -40,7 +40,9 @@ release_thread_buffer (void* arg)
void
ProcessThread::init ()
{
- _private_thread_buffers = new Private<ThreadBuffers> (release_thread_buffer);
+ if (_private_thread_buffers == 0) {
+ _private_thread_buffers = new Private<ThreadBuffers> (release_thread_buffer);
+ }
}
ProcessThread::ProcessThread ()