changeset 33:005ac7a3d827

Print something relevant if no plugins are available
author Chris Cannam
date Wed, 06 Nov 2013 13:01:03 +0000
parents 054ccdae5ed7
children a2d9aed55a2a
files vamp-plugin-tester.cpp
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/vamp-plugin-tester.cpp	Wed May 16 12:02:22 2012 +0100
+++ b/vamp-plugin-tester.cpp	Wed Nov 06 13:01:03 2013 +0000
@@ -126,6 +126,10 @@
         bool good = true;
         Vamp::HostExt::PluginLoader::PluginKeyList keys =
             Vamp::HostExt::PluginLoader::getInstance()->listPlugins();
+        if (keys.size() == 0) {
+            cout << name << ": NOTE: No plugins found!" << endl;
+            cout << name << ": (No libraries in search path, or no descriptors in library)" << endl;
+        }
         int notes = 0, warnings = 0, errors = 0;
         for (int i = 0; i < (int)keys.size(); ++i) {
             cout << "Testing plugin: " << keys[i] << endl;