13
0

fix iterator initialization

This commit is contained in:
Paul Davis 2017-06-06 17:42:45 -04:00
parent bf973f76e0
commit 6c29bc1f55

View File

@ -573,7 +573,7 @@ DiskWriter::run (BufferSet& bufs, framepos_t start_frame, framepos_t end_frame,
const size_t n_buffers = bufs.count().n_audio();
for (n = 0; chan != c->end(); ++chan, ++n) {
for (chan = c->begin(), n = 0; chan != c->end(); ++chan, ++n) {
ChannelInfo* chaninfo (*chan);
AudioBuffer& buf (bufs.get_audio (n%n_buffers));