summaryrefslogtreecommitdiff
path: root/libs/ardour/lv2_plugin.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-07-15 22:23:16 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2013-07-15 22:23:16 -0400
commit9cb678ebcc2ca0c7993bdd182c9e6ad1f8adf09a (patch)
tree9a98d4e9bceb8845a759c79007c983af4fc420c7 /libs/ardour/lv2_plugin.cc
parent90f5eb4a31bebeb315d4c36f20b1aefe110657d0 (diff)
finally get to the bottom of where NO_PLUGIN_STATE needs to be in order to be useful
Diffstat (limited to 'libs/ardour/lv2_plugin.cc')
-rw-r--r--libs/ardour/lv2_plugin.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/ardour/lv2_plugin.cc b/libs/ardour/lv2_plugin.cc
index df33e6c38d..5ea76934a5 100644
--- a/libs/ardour/lv2_plugin.cc
+++ b/libs/ardour/lv2_plugin.cc
@@ -1233,6 +1233,8 @@ LV2Plugin::set_state(const XMLNode& node, int version)
return -1;
}
+#ifndef NO_PLUGIN_STATE
+
if (version < 3000) {
nodes = node.children("port");
} else {
@@ -1288,6 +1290,7 @@ LV2Plugin::set_state(const XMLNode& node, int version)
}
latency_compute_run();
+#endif
return Plugin::set_state(node, version);
}