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