Mercurial > hg > sonic-annotator
diff runner/FeatureExtractionManager.cpp @ 203:08d492f861e9
More useful report when a transform is completely unknown to us
author | Chris Cannam |
---|---|
date | Tue, 03 Nov 2015 11:36:00 +0000 |
parents | 3b7ec45abd1c |
children | c17b184c16db |
line wrap: on
line diff
--- a/runner/FeatureExtractionManager.cpp Fri Oct 02 08:41:55 2015 +0100 +++ b/runner/FeatureExtractionManager.cpp Tue Nov 03 11:36:00 2015 +0000 @@ -233,6 +233,9 @@ // option print out only Vamp transforms cerr << "ERROR: Failed to load plugin for transform \"" << transform.getIdentifier().toStdString() << "\"" << endl; + if (pb) { + cerr << "NOTE: (A plugin was loaded, but apparently not a Vamp plugin)" << endl; + } delete pb; return false; } @@ -414,7 +417,13 @@ Transform transform = tf->getDefaultTransformFor(transformId, m_sampleRate); - return addFeatureExtractor(transform, writers); + bool result = addFeatureExtractor(transform, writers); + if (!result) { + if (transform.getType() == Transform::UnknownType) { + cerr << "(Maybe mixed up filename with transform, or --transform with --default?)" << endl; + } + } + return result; } bool FeatureExtractionManager::addFeatureExtractorFromFile