diff options
Diffstat (limited to 'src/libs/client/PluginModel.cpp')
-rw-r--r-- | src/libs/client/PluginModel.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libs/client/PluginModel.cpp b/src/libs/client/PluginModel.cpp index 93176b22..ff7e5b5c 100644 --- a/src/libs/client/PluginModel.cpp +++ b/src/libs/client/PluginModel.cpp @@ -60,11 +60,10 @@ PluginModel::human_name() string PluginModel::port_human_name(uint32_t index) { - Glib::Mutex::Lock lock(_rdf_world->mutex()); - #ifdef HAVE_SLV2 if (_slv2_plugin) { - SLV2Port port = slv2_port(index); + Glib::Mutex::Lock lock(_rdf_world->mutex()); + SLV2Port port = slv2_plugin_get_port_by_index(_slv2_plugin, index); SLV2Value name = slv2_port_get_name(_slv2_plugin, port); string ret = slv2_value_as_string(name); slv2_value_free(name); |