summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorgiuliomoro <giuliomoro@yahoo.it>2018-07-09 12:02:15 +0100
committerDavid Robillard <d@drobilla.net>2018-07-09 19:18:30 +0200
commit594c7bb8229abf47d435576857f17f9c89bb69e8 (patch)
treed2ad27d0b6768d16a275dc3384ed3a84a2c7ce01 /utils
parentb52c6ff71fa08557294f25faf0f2c4c6e285b796 (diff)
downloadlilv-594c7bb8229abf47d435576857f17f9c89bb69e8.tar.gz
lilv-594c7bb8229abf47d435576857f17f9c89bb69e8.tar.bz2
lilv-594c7bb8229abf47d435576857f17f9c89bb69e8.zip
lv2apply: Use default values when they are not nan
Diffstat (limited to 'utils')
-rw-r--r--utils/lv2apply.c2
1 files changed, 1 insertions, 1 deletions
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);