diff options
author | David Robillard <d@drobilla.net> | 2011-03-05 19:29:27 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-03-05 19:29:27 +0000 |
commit | 595998bf6691ba8af0084e2be29b118fdd5b7e0d (patch) | |
tree | 3a5f1816f12ed756258b589aadd3a5037d07dc65 /utils/lv2_inspect.c | |
parent | 4057547e5731ec7cb04e796b3f77e4511e4bbb06 (diff) | |
download | lilv-595998bf6691ba8af0084e2be29b118fdd5b7e0d.tar.gz lilv-595998bf6691ba8af0084e2be29b118fdd5b7e0d.tar.bz2 lilv-595998bf6691ba8af0084e2be29b118fdd5b7e0d.zip |
Warn when plugin lv2:binary is missing.
Don't crash lv2_inspect when lv2:binary is missing.
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@3040 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'utils/lv2_inspect.c')
-rw-r--r-- | utils/lv2_inspect.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/utils/lv2_inspect.c b/utils/lv2_inspect.c index 5a405ce..26f8bb2 100644 --- a/utils/lv2_inspect.c +++ b/utils/lv2_inspect.c @@ -168,8 +168,14 @@ print_plugin(SLV2Plugin p) printf("\tHas latency: no\n"); } - printf("\tBundle: %s\n", slv2_value_as_uri(slv2_plugin_get_bundle_uri(p))); - printf("\tBinary: %s\n", slv2_value_as_uri(slv2_plugin_get_library_uri(p))); + printf("\tBundle: %s\n", + slv2_value_as_uri(slv2_plugin_get_bundle_uri(p))); + + SLV2Value binary_uri = slv2_plugin_get_library_uri(p); + if (binary_uri) { + printf("\tBinary: %s\n", + slv2_value_as_uri(slv2_plugin_get_library_uri(p))); + } SLV2UIs uis = slv2_plugin_get_uis(p); if (slv2_values_size(uis) > 0) { |