summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plugin.c4
-rw-r--r--utils/lv2_inspect.c10
2 files changed, 12 insertions, 2 deletions
diff --git a/src/plugin.c b/src/plugin.c
index 14a4266..460405f 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -330,6 +330,10 @@ slv2_plugin_get_library_uri(SLV2Plugin p)
}
slv2_match_end(results);
}
+ if (!p->binary_uri) {
+ SLV2_WARNF("Plugin <%s> has no lv2:binary\n",
+ slv2_value_as_uri(slv2_plugin_get_uri(p)));
+ }
return p->binary_uri;
}
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) {