summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS4
-rw-r--r--utils/lv2info.c4
2 files changed, 5 insertions, 3 deletions
diff --git a/NEWS b/NEWS
index 4fc209d..13152ec 100644
--- a/NEWS
+++ b/NEWS
@@ -6,9 +6,11 @@ lilv (0.16.1) unstable;
* Support denoting latency ports with lv2:designation lv2:latency
* Allow passing NULL port_class to lilv_plugin_get_port_by_designation
* Call GetProcAddress with correct calling convention on Windows
+ * lv2info: Don't display invalid control maxes and defaults
+ (patch from Robin Gareus)
* lilvmm.hpp: Add wrappers for UI API
- -- David Robillard <d@drobilla.net> Wed, 30 Oct 2013 10:42:51 -0400
+ -- David Robillard <d@drobilla.net> Thu, 31 Oct 2013 22:48:23 -0400
lilv (0.16.0) stable;
diff --git a/utils/lv2info.c b/utils/lv2info.c
index 3dc7a09..d20789e 100644
--- a/utils/lv2info.c
+++ b/utils/lv2info.c
@@ -118,9 +118,9 @@ print_port(const LilvPlugin* p,
if (lilv_port_is_a(p, port, control_class)) {
if (!isnan(mins[index]))
printf("\t\tMinimum: %f\n", mins[index]);
- if (!isnan(mins[index]))
+ if (!isnan(maxes[index]))
printf("\t\tMaximum: %f\n", maxes[index]);
- if (!isnan(mins[index]))
+ if (!isnan(defaults[index]))
printf("\t\tDefault: %f\n", defaults[index]);
}