diff options
Diffstat (limited to 'libs/ardour/source_factory.cc')
-rw-r--r-- | libs/ardour/source_factory.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/ardour/source_factory.cc b/libs/ardour/source_factory.cc index 5338997659..0b7c0f3d9e 100644 --- a/libs/ardour/source_factory.cc +++ b/libs/ardour/source_factory.cc @@ -129,10 +129,12 @@ SourceFactory::create (Session& s, const XMLNode& node, bool defer_peaks) DataType type = DataType::AUDIO; const XMLProperty* prop = node.property("type"); - if (prop) { - type = DataType(prop->value()); + if (!prop) { + return boost::shared_ptr<Source>(); } + type = DataType (prop->value()); + if (type == DataType::AUDIO) { try { |