mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 21:55:43 +01:00
Fix crash on audio region bounce. Not sure if it's correct though...
git-svn-id: svn://localhost/ardour2/trunk@2288 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
f32a6d0f04
commit
b6855bc209
1 changed files with 3 additions and 2 deletions
|
|
@ -653,8 +653,9 @@ AudioTrack::export_stuff (BufferSet& buffers, nframes_t start, nframes_t nframes
|
|||
boost::shared_ptr<AudioPlaylist> apl = boost::dynamic_pointer_cast<AudioPlaylist>(diskstream->playlist());
|
||||
assert(apl);
|
||||
|
||||
if (apl->read (buffers.get_audio(nframes).data(),
|
||||
mix_buffer, gain_buffer, start, nframes) != nframes) {
|
||||
assert(buffers.get_audio(0).capacity() >= nframes);
|
||||
|
||||
if (apl->read (buffers.get_audio(0).data(), mix_buffer, gain_buffer, start, nframes) != nframes) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue