diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2020-02-06 14:40:18 -0700 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2020-02-06 14:43:58 -0700 |
commit | d4dd756bf6e0b6b58d99721980439bfa07fb7984 (patch) | |
tree | 3accba3056e0155a122cb2961298d7091f46fcee /libs/ardour/lv2_plugin.cc | |
parent | 39e0c0a084a64ee2862bedb6bbc71129ab078b7a (diff) |
always use plugin's ::midnam_model() method to provide the name of a custom, plugin provided MIDNAM document
Diffstat (limited to 'libs/ardour/lv2_plugin.cc')
-rw-r--r-- | libs/ardour/lv2_plugin.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libs/ardour/lv2_plugin.cc b/libs/ardour/lv2_plugin.cc index 1e3e1363ec..2034782067 100644 --- a/libs/ardour/lv2_plugin.cc +++ b/libs/ardour/lv2_plugin.cc @@ -1106,10 +1106,7 @@ LV2Plugin::read_midnam () { } char* midnam = _midname_interface->midnam ((void*)_impl->instance->lv2_handle); if (midnam) { - std::stringstream ss; - ss << (void*)this; - ss << unique_id(); - rv = MIDI::Name::MidiPatchManager::instance().update_custom_midnam (ss.str(), midnam); + rv = MIDI::Name::MidiPatchManager::instance().update_custom_midnam (midnam_model(), midnam); } #ifndef NDEBUG if (rv) { |