diff vamp-client/qt/AutoPlugin.h @ 192:458766b73e71

Merge pull request #3 from piper-audio/dev/step-and-block-size Fix erroneous logic for handling step and block size in prior commit
author Chris Cannam <cannam@all-day-breakfast.com>
date Tue, 07 Feb 2017 09:51:29 +0000
parents 52322dde68ea
children ad6025dc0b04 61034472c304
line wrap: on
line diff
--- a/vamp-client/qt/AutoPlugin.h	Mon Feb 06 12:04:25 2017 +0000
+++ b/vamp-client/qt/AutoPlugin.h	Tue Feb 07 09:51:29 2017 +0000
@@ -138,14 +138,7 @@
     virtual bool initialise(size_t inputChannels,
                             size_t stepSize,
                             size_t blockSize) {
-        try {
-            return getPlugin()->initialise(inputChannels, stepSize, blockSize);
-        } catch (const ServiceError &e) {
-            // Sadly, the Vamp API has taught hosts to try to divine
-            // initialisation problems from a bool return value alone
-            log(std::string("AutoPlugin: initialise failed: ") + e.what());
-            return false;
-        }
+        return getPlugin()->initialise(inputChannels, stepSize, blockSize);
     }
 
     virtual void reset() {