changeset 84:af0d86b8b692

* Fix failure to default correctly if plugin output unspecified
author cannam
date Fri, 28 Sep 2007 09:53:46 +0000
parents 94a42248ec33
children a6551cf99aff
files host/vamp-simple-host.cpp
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/host/vamp-simple-host.cpp	Mon Sep 24 14:44:48 2007 +0000
+++ b/host/vamp-simple-host.cpp	Fri Sep 28 09:53:46 2007 +0000
@@ -162,6 +162,10 @@
         usage(name);
     }
 
+    if (output == "" && outputNo == -1) {
+        outputNo = 0;
+    }
+
     return runPlugin(name, soname, plugid, output, outputNo, wavname);
 }