diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-10-15 20:33:05 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-10-15 20:33:05 +0000 |
commit | f76de9afb98611452c2cb0c4d233db362ef29924 (patch) | |
tree | 0d3d2582729c7bbd714771336f7ac0ef23c3d2c8 /libs | |
parent | 1aca200a6ac28599e68fd86cb5cc62a60f867af3 (diff) |
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
Diffstat (limited to 'libs')
-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 { |