mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
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:
parent
1aca200a6a
commit
f76de9afb9
1 changed files with 2 additions and 4 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue