Mercurial > hg > sonic-annotator
changeset 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 | cdd825dbba35 |
children | 1f8fef5c6ea2 |
files | runner/FeatureExtractionManager.cpp |
diffstat | 1 files changed, 10 insertions(+), 1 deletions(-) [+] |
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