Mercurial > hg > sonic-annotator
comparison runner/FeatureExtractionManager.cpp @ 10:12f250173bf2
* Delete reader after use!
author | Chris Cannam |
---|---|
date | Fri, 12 Dec 2008 15:33:55 +0000 |
parents | f98b58fb294f |
children | 21a31c779384 |
comparison
equal
deleted
inserted
replaced
9:c8caebf2d79f | 10:12f250173bf2 |
---|---|
252 | 252 |
253 m_pluginOutputs[plugin][outputs[i].identifier] = outputs[i]; | 253 m_pluginOutputs[plugin][outputs[i].identifier] = outputs[i]; |
254 m_pluginOutputIndices[outputs[i].identifier] = i; | 254 m_pluginOutputIndices[outputs[i].identifier] = i; |
255 } | 255 } |
256 | 256 |
257 cerr << "NOTE: Loaded and initialised plugin " << plugin | 257 cerr << "NOTE: Loaded and initialised plugin for transform \"" |
258 << " for transform \"" | |
259 << transform.getIdentifier().toStdString() << "\"" << endl; | 258 << transform.getIdentifier().toStdString() << "\"" << endl; |
260 | 259 |
261 } else { | 260 } else { |
262 | 261 |
263 if (transform.getStepSize() == 0 || transform.getBlockSize() == 0) { | 262 if (transform.getStepSize() == 0 || transform.getBlockSize() == 0) { |
570 | 569 |
571 int pp = progress; | 570 int pp = progress; |
572 progress = int(((i - startFrame) * 100.0) / (endFrame - startFrame) + 0.1); | 571 progress = int(((i - startFrame) * 100.0) / (endFrame - startFrame) + 0.1); |
573 if (progress > pp) extractionProgress.setProgress(progress); | 572 if (progress > pp) extractionProgress.setProgress(progress); |
574 } | 573 } |
574 | |
575 delete reader; | |
575 | 576 |
576 for (PluginMap::iterator pi = m_plugins.begin(); | 577 for (PluginMap::iterator pi = m_plugins.begin(); |
577 pi != m_plugins.end(); ++pi) { | 578 pi != m_plugins.end(); ++pi) { |
578 | 579 |
579 Plugin *plugin = pi->first; | 580 Plugin *plugin = pi->first; |