Allow sparse CC lists.

This commit is contained in:
Robin Gareus 2016-12-06 22:51:55 +01:00
parent 2d37392f1a
commit 1ef1734e76

View File

@ -150,8 +150,13 @@ InstrumentInfo::get_controller_name (Evoral::Parameter param) const
if (!control_names) {
return "";
}
boost::shared_ptr<const Control> c = control_names->control(param.id());
return control_names->control(param.id())->name();
if (c) {
return c->name();
}
return "";
}
boost::shared_ptr<MIDI::Name::ChannelNameSet>