1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-02 03:20:06 +00:00

VST2 Host: Fix an incorrect assertion in the VST2 hosting code's handling of channel pointers

This commit is contained in:
hogliux 2022-10-04 19:23:38 +02:00
parent 7b61bdfba9
commit 447c760be3

View file

@ -837,7 +837,7 @@ public:
{
auto& pointers = getPointers (Tag<T>{});
jassert ((int) pointers.size() < buffer.getNumChannels());
jassert (buffer.getNumChannels() <= static_cast<int> (pointers.capacity()));
pointers.resize (jmax (pointers.size(), (size_t) buffer.getNumChannels()));
std::copy (buffer.getArrayOfWritePointers(),