mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-22 21:27:22 +01:00
Safeguard stripable_list_to_control_list API
See also976e03c15cwhich does this for `route_list_to_control_list`. Fix crashes with empty route-lists e.g. momentary solo which was introduced in03105aa760.
This commit is contained in:
parent
94b7ed8d4c
commit
810da43be6
1 changed files with 1 additions and 0 deletions
|
|
@ -137,6 +137,7 @@ template<typename T> std::shared_ptr<AutomationControlList> stripable_list_to_co
|
|||
|
||||
template<typename T> std::shared_ptr<AutomationControlList> stripable_list_to_control_list (std::shared_ptr<StripableList const> sl, std::shared_ptr<T> (Stripable::*get_control)() const) {
|
||||
std::shared_ptr<AutomationControlList> cl (new AutomationControlList);
|
||||
if (!sl) { return cl; }
|
||||
for (auto const & s : *sl) {
|
||||
std::shared_ptr<AutomationControl> ac = (s.get()->*get_control)();
|
||||
if (ac) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue