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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user