diff options
author | Robin Gareus <robin@gareus.org> | 2016-12-06 22:51:55 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-12-06 22:56:04 +0100 |
commit | 1ef1734e7625afe9771049c9c5fe4047ec229c5d (patch) | |
tree | 0b9b66de969376e6ac5f95a42cfebb8eb5eaf168 | |
parent | 2d37392f1a23d415d022edec4c41c244b584031d (diff) |
Allow sparse CC lists.
-rw-r--r-- | libs/ardour/instrument_info.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libs/ardour/instrument_info.cc b/libs/ardour/instrument_info.cc index 2f77d980ba..09fef4f482 100644 --- a/libs/ardour/instrument_info.cc +++ b/libs/ardour/instrument_info.cc @@ -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> |