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:
parent
12be2e8838
commit
3705a5c413
2 changed files with 7 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
Loading…
Add table
Add a link
Reference in a new issue