mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +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())) {
|
if ((elName != nullptr) && (CFGetTypeID(elName) == CFStringGetTypeID())) {
|
||||||
AUElement* const element = GetElement(intKey);
|
AUElement* const element = GetElement(intKey);
|
||||||
if (element != nullptr) {
|
if (element != nullptr) {
|
||||||
element->SetName(elName);
|
auto* const currentName = element->GetName().get();
|
||||||
restoredElements.push_back(intKey);
|
|
||||||
|
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