fix mishanding of LXVST (and windows VST) plugin names where the path includes a...
[ardour.git] / libs / ardour / lxvst_plugin.cc
index 90c2c70b50f0a22274807723f757515862bfdf42..6e30e0c4436d8457ee0a939b089e762ebf0976a2 100755 (executable)
@@ -17,7 +17,7 @@
 
 */
 
-#include "ardour/vstfx.h"
+#include "ardour/linux_vst_support.h"
 #include "ardour/session.h"
 #include "ardour/lxvst_plugin.h"
 
@@ -32,7 +32,7 @@ LXVSTPlugin::LXVSTPlugin (AudioEngine& e, Session& session, VSTHandle* h)
 {
        /* Instantiate the plugin and return a VSTState* */
 
-       if ((_state = vstfx_instantiate (_handle, Session::lxvst_callback, this)) == 0) {
+       if ((_state = vstfx_instantiate (_handle, Session::vst_callback, this)) == 0) {
                throw failed_constructor();
        }
 
@@ -44,7 +44,7 @@ LXVSTPlugin::LXVSTPlugin (const LXVSTPlugin &other)
 {
        _handle = other._handle;
 
-       if ((_state = vstfx_instantiate (_handle, Session::lxvst_callback, this)) == 0) {
+       if ((_state = vstfx_instantiate (_handle, Session::vst_callback, this)) == 0) {
                throw failed_constructor();
        }
        _plugin = _state->plugin;