1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00

AUv2: Fix crash in Ableton Live when bus name listeners are called for no reason

This commit is contained in:
hogliux 2022-10-18 17:15:18 +02:00
parent 12be2e8838
commit 3705a5c413
2 changed files with 7 additions and 2 deletions

View file

@ -386,8 +386,12 @@ std::vector<AudioUnitElement> AUScope::RestoreElementNames(CFDictionaryRef inNam
if ((elName != nullptr) && (CFGetTypeID(elName) == CFStringGetTypeID())) {
AUElement* const element = GetElement(intKey);
if (element != nullptr) {
element->SetName(elName);
restoredElements.push_back(intKey);
auto* const currentName = element->GetName().get();
if (currentName == nullptr || CFStringCompare(elName, currentName, 0) != kCFCompareEqualTo) {
element->SetName(elName);
restoredElements.push_back(intKey);
}
}
}
}

View file

@ -0,0 +1 @@
AUScopeElement.cpp - The method AUScope::RestoreElementNames was changed to only call AUElement::SetName if the name actually changed (instead of always). This is a workaround for a Ableton Live 11 bug which crashes on duplicating AUs with more than 16 output busses.