projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb85208
)
Fix compilation with older lilv (0.5.0)
author
Sakari Bergen
<sakari.bergen@beatwaves.net>
Sat, 28 Jan 2012 13:36:13 +0000
(13:36 +0000)
committer
Sakari Bergen
<sakari.bergen@beatwaves.net>
Sat, 28 Jan 2012 13:36:13 +0000
(13:36 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@11375
d708f5d6
-7413-0410-9779-
e7cbd77b26cf
libs/ardour/lv2_plugin.cc
patch
|
blob
|
history
diff --git
a/libs/ardour/lv2_plugin.cc
b/libs/ardour/lv2_plugin.cc
index b645f8bfa8c28de047ee5729a12389f9f2434b33..8ea874ace02b1cbd1f9b9754cd0e39a84e26fd7b 100644
(file)
--- a/
libs/ardour/lv2_plugin.cc
+++ b/
libs/ardour/lv2_plugin.cc
@@
-771,6
+771,7
@@
LV2Plugin::set_state(const XMLNode& node, int version)
set_parameter(port_id, atof(value));
}
+#ifdef HAVE_NEW_LILV
_state_version = 0;
if ((prop = node.property("state-dir")) != 0) {
if (sscanf(prop->value().c_str(), "state%u", &_state_version) != 1) {
@@
-790,6
+791,7
@@
LV2Plugin::set_state(const XMLNode& node, int version)
lilv_state_restore(state, _impl->instance, NULL, NULL, 0, NULL);
}
+#endif
latency_compute_run();