summaryrefslogtreecommitdiff
path: root/libs/ardour/io.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2007-02-23 17:27:06 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2007-02-23 17:27:06 +0000
commit8adfb38bd602a69bebed77899ac759a0268f97bd (patch)
tree88e6c82adab1525a973801214ba2de32442d7bc1 /libs/ardour/io.cc
parent6f3d9704cf70ad2175d908b55cc81e96652dcc16 (diff)
fix for #1041, I/O names with colons in them
git-svn-id: svn://localhost/ardour2/trunk@1502 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/io.cc')
-rw-r--r--libs/ardour/io.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/ardour/io.cc b/libs/ardour/io.cc
index 692515f710..f899b71d1e 100644
--- a/libs/ardour/io.cc
+++ b/libs/ardour/io.cc
@@ -28,6 +28,7 @@
#include <glibmm/thread.h>
#include <pbd/xml++.h>
+#include <pbd/replace_all.h>
#include <ardour/audioengine.h>
#include <ardour/io.h>
@@ -2100,6 +2101,12 @@ IO::set_name (string name, void* src)
return 0;
}
+ /* replace all colons in the name. i wish we didn't have to do this */
+
+ if (replace_all (name, ":", "-")) {
+ warning << _("you cannot use colons to name objects with I/O connections") << endmsg;
+ }
+
for (vector<Port *>::iterator i = _inputs.begin(); i != _inputs.end(); ++i) {
string current_name = (*i)->short_name();
current_name.replace (current_name.find (_name), _name.length(), name);