13
0

Sessions loaded from 2.X don't have a diskstream (yet)

in Track::set_state(); prevent a crash, at least; not
100% sure if the behaviour is right, though.


git-svn-id: svn://localhost/ardour2/branches/3.0@10975 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2011-12-11 14:14:17 +00:00
parent 692f857b83
commit ed360080d0

View File

@ -115,7 +115,9 @@ Track::set_state (const XMLNode& node, int version)
}
}
if (_diskstream) {
_diskstream->playlist()->set_orig_track_id (id());
}
/* set rec-enable control *AFTER* setting up diskstream, because it may
want to operate on the diskstream as it sets its own state