diff options
author | Carl Hetherington <carl@carlh.net> | 2012-06-18 18:28:06 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2012-06-18 18:28:06 +0000 |
commit | 49fec4f43072f2600c921ea714dacc868370aa53 (patch) | |
tree | 7a1b10f60e24fc35f046be5ba1cab0e79014c80b /libs | |
parent | 3d3fa9ae02bff81e3eb6b20590af697d28be28fb (diff) |
Fix (?) failure to load A2 sessions with a ControlOut.
git-svn-id: svn://localhost/ardour2/branches/3.0@12757 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/route.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index edc44aeb92..28cefd5ae5 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -26,6 +26,8 @@ #include <cassert> #include <algorithm> +#include <boost/algorithm/string.hpp> + #include "pbd/xml++.h" #include "pbd/enumwriter.h" #include "pbd/memento_command.h" @@ -2166,7 +2168,9 @@ Route::set_state_2X (const XMLNode& node, int version) } if ((prop = node.property (X_("flags"))) != 0) { - _flags = Flag (string_2_enum (prop->value(), _flags)); + string f = prop->value (); + boost::replace_all (f, "ControlOut", "MonitorOut"); + _flags = Flag (string_2_enum (f, _flags)); } else { _flags = Flag (0); } |