From d4dd756bf6e0b6b58d99721980439bfa07fb7984 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 6 Feb 2020 14:40:18 -0700 Subject: always use plugin's ::midnam_model() method to provide the name of a custom, plugin provided MIDNAM document --- libs/ardour/lv2_plugin.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'libs/ardour/lv2_plugin.cc') 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) { -- cgit v1.2.3