# HG changeset patch # User Chris Cannam # Date 1446550463 0 # Node ID 205250c5d2a2f392e8cab9cbb68329afb07b8cd7 # Parent a2dbedc0cfee98e45d9cbd82a6a0b058a9cea849 Handle unknown type diff -r a2dbedc0cfee -r 205250c5d2a2 transform/TransformFactory.cpp --- a/transform/TransformFactory.cpp Tue Nov 03 11:34:07 2015 +0000 +++ b/transform/TransformFactory.cpp Tue Nov 03 11:34:23 2015 +0000 @@ -794,6 +794,9 @@ if (t.getType() == Transform::FeatureExtraction) { +// cerr << "TransformFactory::instantiateDefaultPluginFor: identifier \"" +// << identifier << "\" is a feature extraction transform" << endl; + FeatureExtractionPluginFactory *factory = FeatureExtractionPluginFactory::instanceFor(pluginId); @@ -801,7 +804,10 @@ plugin = factory->instantiatePlugin(pluginId, rate); } - } else { + } else if (t.getType() == Transform::RealTimeEffect) { + +// cerr << "TransformFactory::instantiateDefaultPluginFor: identifier \"" +// << identifier << "\" is a real-time transform" << endl; RealTimePluginFactory *factory = RealTimePluginFactory::instanceFor(pluginId); @@ -809,6 +815,10 @@ if (factory) { plugin = factory->instantiatePlugin(pluginId, 0, 0, rate, 1024, 1); } + + } else { + cerr << "TransformFactory: ERROR: transform id \"" + << identifier << "\" is of unknown type" << endl; } return plugin;