diff options
author | David Robillard <d@drobilla.net> | 2014-10-31 21:03:12 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-10-31 21:03:12 -0400 |
commit | c855d17e09a4b8a977ff9e026dd1b01e80c3bf65 (patch) | |
tree | 6276b020682c6f66c9cec6a4ae9eff76297b9a8b /libs/ardour | |
parent | 5de6c21ec1d1c6dde705df6cbe47d4aa5e711b55 (diff) |
Fix compilation against older LV2.
Diffstat (limited to 'libs/ardour')
-rw-r--r-- | libs/ardour/lv2_plugin.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/ardour/lv2_plugin.cc b/libs/ardour/lv2_plugin.cc index 6805391d19..30b00df497 100644 --- a/libs/ardour/lv2_plugin.cc +++ b/libs/ardour/lv2_plugin.cc @@ -1370,7 +1370,11 @@ LV2Plugin::announce_property_values() lv2_atom_forge_set_buffer(forge, buf, sizeof(buf)); // Serialize patch:Get message with no subject (implicitly plugin instance) +#ifdef HAVE_LV2_1_10_0 lv2_atom_forge_object(forge, &frame, 1, LV2Plugin::urids.patch_Get); +#else + lv2_atom_forge_blank(forge, &frame, 1, LV2Plugin::urids.patch_Get); +#endif // Write message to UI=>Plugin ring const LV2_Atom* const atom = (const LV2_Atom*)buf; |