diff src/vamp-hostsdk/PluginHostAdapter.cpp @ 240:7b90fe049d04

* Add --list-full to "simple" Vamp host
author cannam
date Mon, 10 Nov 2008 16:47:41 +0000
parents 7b12c3decc42
children 7d678f889789
line wrap: on
line diff
--- a/src/vamp-hostsdk/PluginHostAdapter.cpp	Mon Nov 10 12:39:19 2008 +0000
+++ b/src/vamp-hostsdk/PluginHostAdapter.cpp	Mon Nov 10 16:47:41 2008 +0000
@@ -327,7 +327,7 @@
         d.unit = sd->unit;
         d.hasFixedBinCount = sd->hasFixedBinCount;
         d.binCount = sd->binCount;
-        if (d.hasFixedBinCount) {
+        if (d.hasFixedBinCount && sd->binNames) {
             for (unsigned int j = 0; j < sd->binCount; ++j) {
                 d.binNames.push_back(sd->binNames[j] ? sd->binNames[j] : "");
             }