comparison transform/FeatureExtractionModelTransformer.cpp @ 429:6036b38177e2

* Fix crash when running Generator
author Chris Cannam
date Wed, 18 Jun 2008 13:40:10 +0000
parents d35d4e79c95b
children cff476cfce77
comparison
equal deleted inserted replaced
428:3e1d190048f4 429:6036b38177e2
148 m_message = tr("Plugin \"%1\" has no outputs").arg(pluginId); 148 m_message = tr("Plugin \"%1\" has no outputs").arg(pluginId);
149 return; 149 return;
150 } 150 }
151 151
152 for (size_t i = 0; i < outputs.size(); ++i) { 152 for (size_t i = 0; i < outputs.size(); ++i) {
153 // std::cerr << "comparing output " << i << " name \"" << outputs[i].identifier << "\" with expected \"" << m_transform.getOutput().toStdString() << "\"" << std::endl;
153 if (m_transform.getOutput() == "" || 154 if (m_transform.getOutput() == "" ||
154 outputs[i].identifier == m_transform.getOutput().toStdString()) { 155 outputs[i].identifier == m_transform.getOutput().toStdString()) {
155 m_outputFeatureNo = i; 156 m_outputFeatureNo = i;
156 m_descriptor = new Vamp::Plugin::OutputDescriptor 157 m_descriptor = new Vamp::Plugin::OutputDescriptor
157 (outputs[i]); 158 (outputs[i]);