mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-09 23:25:43 +01:00
maybe fix crash related to thread-private buffers
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2468 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
ea6e0a3778
commit
7d2f8306fc
1 changed files with 0 additions and 3 deletions
|
|
@ -916,14 +916,11 @@ SndFileSource::get_interleave_buffer (nframes_t size)
|
|||
if ((ssb = thread_interleave_buffer.get()) == 0) {
|
||||
ssb = new SizedSampleBuffer (size);
|
||||
thread_interleave_buffer.set (ssb);
|
||||
cerr << pthread_self() << " new IB of " << size << endl;
|
||||
}
|
||||
|
||||
if (ssb->size < size) {
|
||||
delete ssb;
|
||||
ssb = new SizedSampleBuffer (size);
|
||||
thread_interleave_buffer.set (ssb);
|
||||
cerr << pthread_self() << " resized IB to " << size << endl;
|
||||
}
|
||||
|
||||
return ssb->buf;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue