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
This commit is contained in:
Paul Davis 2009-10-15 20:33:05 +00:00
parent 1aca200a6a
commit f76de9afb9

View file

@ -134,11 +134,9 @@ 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());
}
if (type == DataType::AUDIO) {