Fix compilation with older lilv (0.5.0)
git-svn-id: svn://localhost/ardour2/branches/3.0@11375 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
eb85208fe8
commit
aaf418bd6f
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user