13
0

Track mode needs to be set before loading Track state

parent Track::set_state() sets the diskstream
and ::set_diskstream() depends on the track mode.

fixes Tape tracks on session load
This commit is contained in:
Robin Gareus 2015-04-28 12:57:45 +02:00
parent ba0f7482c3
commit e3a2bc6a36

View File

@ -187,16 +187,16 @@ AudioTrack::set_state (const XMLNode& node, int version)
{
const XMLProperty *prop;
if (Track::set_state (node, version)) {
return -1;
}
if ((prop = node.property (X_("mode"))) != 0) {
_mode = TrackMode (string_2_enum (prop->value(), _mode));
} else {
_mode = Normal;
}
if (Track::set_state (node, version)) {
return -1;
}
pending_state = const_cast<XMLNode*> (&node);
if (_session.state_of_the_state() & Session::Loading) {