diff options
Diffstat (limited to 'libs/ardour/session_state.cc')
-rw-r--r-- | libs/ardour/session_state.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index f5bf0cc173..8d11fd3b3f 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -1743,15 +1743,15 @@ Session::XMLRouteFactory (const XMLNode& node) bool has_diskstream = (node.property ("diskstream") != 0 || node.property ("diskstream-id") != 0); - DataType type = AUDIO; + DataType type = DataType::AUDIO; const XMLProperty* prop = node.property("default-type"); if (prop) - type = Buffer::type_from_string(prop->value()); + type = DataType(prop->value()); - assert(type != NIL); + assert(type != DataType::NIL); if (has_diskstream) { - if (type == AUDIO) { + if (type == DataType::AUDIO) { boost::shared_ptr<Route> ret (new AudioTrack (*this, node)); return ret; } else { |