summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-06-03 22:07:02 +0000
committerDavid Robillard <d@drobilla.net>2009-06-03 22:07:02 +0000
commitc68a20ee1fca5d6c076d0f754653f48f508279d0 (patch)
tree5129e1288d1a09e773756124b69b957d46bc79e4 /utils
parent3ee5e87fc15363c104f08e61ba8ed0da76f97152 (diff)
downloadlilv-c68a20ee1fca5d6c076d0f754653f48f508279d0.tar.gz
lilv-c68a20ee1fca5d6c076d0f754653f48f508279d0.tar.bz2
lilv-c68a20ee1fca5d6c076d0f754653f48f508279d0.zip
Tolerate lv2_inspect of broken plugins with illegal ports.
Shave some overhead from port loading. git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2087 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'utils')
-rw-r--r--utils/lv2_inspect.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/lv2_inspect.c b/utils/lv2_inspect.c
index 263374c..7b3d594 100644
--- a/utils/lv2_inspect.c
+++ b/utils/lv2_inspect.c
@@ -34,6 +34,11 @@ print_port(SLV2Plugin p, uint32_t index, float* mins, float* maxes, float* defau
printf("\n\tPort %d:\n", index);
+ if (!port) {
+ printf("\t\tERROR: Illegal/nonexistent port\n");
+ return;
+ }
+
SLV2Values classes = slv2_port_get_classes(p, port);
printf("\t\tClasses:\n");