comparison transform/TransformFactory.cpp @ 439:beb2948baa77

* Merge revisions 1041 to 1130 from sv-rdf-import branch
author Chris Cannam
date Thu, 18 Sep 2008 12:09:32 +0000
parents 370aa9714ef5
children 381ec750eeee
comparison
equal deleted inserted replaced
438:32c399d06374 439:beb2948baa77
482 if (t.getType() == Transform::FeatureExtraction) { 482 if (t.getType() == Transform::FeatureExtraction) {
483 483
484 FeatureExtractionPluginFactory *factory = 484 FeatureExtractionPluginFactory *factory =
485 FeatureExtractionPluginFactory::instanceFor(pluginId); 485 FeatureExtractionPluginFactory::instanceFor(pluginId);
486 486
487 plugin = factory->instantiatePlugin(pluginId, rate); 487 if (factory) {
488 plugin = factory->instantiatePlugin(pluginId, rate);
489 }
488 490
489 } else { 491 } else {
490 492
491 RealTimePluginFactory *factory = 493 RealTimePluginFactory *factory =
492 RealTimePluginFactory::instanceFor(pluginId); 494 RealTimePluginFactory::instanceFor(pluginId);
493 495
494 plugin = factory->instantiatePlugin(pluginId, 0, 0, rate, 1024, 1); 496 if (factory) {
497 plugin = factory->instantiatePlugin(pluginId, 0, 0, rate, 1024, 1);
498 }
495 } 499 }
496 500
497 return plugin; 501 return plugin;
498 } 502 }
499 503