diff 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
line wrap: on
line diff
--- a/transform/TransformFactory.cpp	Thu Aug 07 16:06:59 2008 +0000
+++ b/transform/TransformFactory.cpp	Thu Sep 18 12:09:32 2008 +0000
@@ -484,14 +484,18 @@
         FeatureExtractionPluginFactory *factory = 
             FeatureExtractionPluginFactory::instanceFor(pluginId);
 
-        plugin = factory->instantiatePlugin(pluginId, rate);
+        if (factory) {
+            plugin = factory->instantiatePlugin(pluginId, rate);
+        }
 
     } else {
 
         RealTimePluginFactory *factory = 
             RealTimePluginFactory::instanceFor(pluginId);
-            
-        plugin = factory->instantiatePlugin(pluginId, 0, 0, rate, 1024, 1);
+
+        if (factory) {
+            plugin = factory->instantiatePlugin(pluginId, 0, 0, rate, 1024, 1);
+        }
     }
 
     return plugin;