From d83003cd073380fe0a28cd1b3ce40dc7ab072fe0 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 28 Sep 2008 04:00:48 +0000 Subject: Fix last fix :) git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1522 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/client/PluginModel.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') 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); -- cgit v1.2.1