merge (squash) with scenechange topic branch to provide MIDI-driven scene change...
[ardour.git] / libs / ardour / export_channel.cc
index 296bfc9022493ada07e2d2a03e41de1fc9c8e59c..fc71d8536f049cfe413642bb1efd8b9d4b810506 100644 (file)
@@ -242,7 +242,7 @@ RouteExportChannel::read (Sample const *& data, framecnt_t frames) const
 #ifndef NDEBUG
        (void) frames;
 #else
-       assert (frames <= (framecnt_t) buffer.size());
+       assert (frames <= (framecnt_t) buffer.capacity());
 #endif
        data = buffer.data();
 }