From f76de9afb98611452c2cb0c4d233db362ef29924 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 15 Oct 2009 20:33:05 +0000 Subject: another set_state() related tweak for handling 2.X sessions git-svn-id: svn://localhost/ardour2/branches/3.0@5789 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/source_factory.cc | 6 ++---- 1 file 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(); + if (prop) { + type = DataType (prop->value()); } - type = DataType (prop->value()); - if (type == DataType::AUDIO) { try { -- cgit v1.2.3