summaryrefslogtreecommitdiff
path: root/libs/ardour/session.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-05-10 20:28:47 +0200
committerRobin Gareus <robin@gareus.org>2017-05-10 20:29:08 +0200
commitc0b54e868fea0eb3b8a940e680aebc655486e5c3 (patch)
tree203aaf345a271166f2f51955da83f64c06281ad4 /libs/ardour/session.cc
parenta82cfd24612d2143f8ed77b39fd459f060e5a5c4 (diff)
Fix another possible case of illegal use of reserved port-names
Session::io_name_is_legal() is used for Routes and Processors: Route::set_name(), ProcessorBox::rename_processor() and and Route::ensure_track_or_route_name() -- it is not used for actual I/O objects.
Diffstat (limited to 'libs/ardour/session.cc')
-rw-r--r--libs/ardour/session.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc
index a69c69b27b..ffb0022729 100644
--- a/libs/ardour/session.cc
+++ b/libs/ardour/session.cc
@@ -4277,8 +4277,8 @@ Session::io_name_is_legal (const std::string& name) const
for (map<string,bool>::const_iterator reserved = reserved_io_names.begin(); reserved != reserved_io_names.end(); ++reserved) {
if (name == reserved->first) {
if (!route_by_name (reserved->first)) {
- /* first instance of a reserved name is allowed */
- return true;
+ /* first instance of a reserved name is allowed for some */
+ return reserved->second;
}
/* all other instances of a reserved name are not allowed */
return false;