From 594c7bb8229abf47d435576857f17f9c89bb69e8 Mon Sep 17 00:00:00 2001 From: giuliomoro Date: Mon, 9 Jul 2018 12:02:15 +0100 Subject: lv2apply: Use default values when they are not nan --- NEWS | 1 + utils/lv2apply.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 04c167e..5f3f580 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,7 @@ lilv (0.24.3) unstable; * Don't attempt to load remote or non-Turtle files + * lv2apply: Use default values when they are not nan * lv2bench: Improve support for plugins with sequence ports * lv2bench: Support running a single plugin given on the command line * Gracefully handle plugins with missing binary URIs diff --git a/utils/lv2apply.c b/utils/lv2apply.c index 7dfbb2e..c664d05 100644 --- a/utils/lv2apply.c +++ b/utils/lv2apply.c @@ -157,7 +157,7 @@ create_ports(LV2Apply* self) port->lilv_port = lport; port->index = i; - port->value = isnan(values[i]) ? values[i] : 0.0f; + port->value = isnan(values[i]) ? 0.0f : values[i]; port->optional = lilv_port_has_property( self->plugin, lport, lv2_connectionOptional); -- cgit v1.2.1