diff host/vamp-simple-host.cpp @ 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 d17b9ca3b8c9
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);
 }