diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-07-15 22:23:16 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-08-08 15:23:09 -0400 |
commit | 6602c6659eaa5e88f4edb6005581e86437017e56 (patch) | |
tree | 2cb49b4657d8079fdbe414a33c8edd9457cc0793 /libs/ardour/vst_plugin.cc | |
parent | dc0ee761d2614f9cb2fefa1bc8ba2148758e499e (diff) |
finally get to the bottom of where NO_PLUGIN_STATE needs to be in order to be useful
Diffstat (limited to 'libs/ardour/vst_plugin.cc')
-rw-r--r-- | libs/ardour/vst_plugin.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/ardour/vst_plugin.cc b/libs/ardour/vst_plugin.cc index c385e71a5a..b80a594495 100644 --- a/libs/ardour/vst_plugin.cc +++ b/libs/ardour/vst_plugin.cc @@ -197,14 +197,15 @@ int VSTPlugin::set_state (const XMLNode& node, int version) { LocaleGuard lg (X_("POSIX")); + int ret = -1; if (node.name() != state_node_name()) { error << _("Bad node sent to VSTPlugin::set_state") << endmsg; return 0; } +#ifndef NO_PLUGIN_STATE XMLNode* child; - int ret = -1; if ((child = find_named_node (node, X_("chunk"))) != 0) { @@ -237,6 +238,7 @@ VSTPlugin::set_state (const XMLNode& node, int version) ret = 0; } +#endif Plugin::set_state (node, version); return ret; |