diff options
author | Sakari Bergen <sakari.bergen@beatwaves.net> | 2012-01-28 13:36:13 +0000 |
---|---|---|
committer | Sakari Bergen <sakari.bergen@beatwaves.net> | 2012-01-28 13:36:13 +0000 |
commit | aaf418bd6fe178eea0c67e65693536b07fcf5932 (patch) | |
tree | 12f72521e01c8ef75066655bfe0fcd45e844e802 /libs/ardour | |
parent | eb85208fe8ab985831acc7011c3cebd219aa0031 (diff) |
Fix compilation with older lilv (0.5.0)
git-svn-id: svn://localhost/ardour2/branches/3.0@11375 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour')
-rw-r--r-- | libs/ardour/lv2_plugin.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/ardour/lv2_plugin.cc b/libs/ardour/lv2_plugin.cc index b645f8bfa8..8ea874ace0 100644 --- 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(); |