changeset 69:57a78e7e4ad3

* Make the item-edit dialog do something useful
author Chris Cannam
date Mon, 03 Apr 2006 17:18:27 +0000
parents 8e8c2981a189
children d26c85099215
files transform/FeatureExtractionPluginTransform.cpp
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/transform/FeatureExtractionPluginTransform.cpp	Mon Apr 03 14:18:40 2006 +0000
+++ b/transform/FeatureExtractionPluginTransform.cpp	Mon Apr 03 17:18:27 2006 +0000
@@ -206,7 +206,11 @@
 
     size_t sampleRate = m_input->getSampleRate();
 
-    m_plugin->initialise(channelCount, m_stepSize, m_blockSize);
+    if (!m_plugin->initialise(channelCount, m_stepSize, m_blockSize)) {
+        std::cerr << "FeatureExtractionPluginTransform::run: Plugin "
+                  << m_plugin->getName() << " failed to initialise!" << std::endl;
+        return;
+    }
 
     float **buffers = new float*[channelCount];
     for (size_t ch = 0; ch < channelCount; ++ch) {