From 0274c93eac27f6c65fb3c42ef3cb3bb576977b92 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 31 Dec 2014 17:16:28 -0500 Subject: [PATCH] Add missing Variant => LV2 Atom case. (Not likely to actually be used any time soon but fixes warning and does something reasonable if lossy). --- libs/ardour/lv2_plugin.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/ardour/lv2_plugin.cc b/libs/ardour/lv2_plugin.cc index f2bcd70325..edb872605c 100644 --- a/libs/ardour/lv2_plugin.cc +++ b/libs/ardour/lv2_plugin.cc @@ -1224,6 +1224,10 @@ forge_variant(LV2_Atom_Forge* forge, const Variant& value) switch (value.type()) { case Variant::NOTHING: break; + case Variant::BEATS: + // No atom type for this, just forge a double + lv2_atom_forge_double(forge, value.get_beats().to_double()); + break; case Variant::BOOL: lv2_atom_forge_bool(forge, value.get_bool()); break;