summaryrefslogtreecommitdiff
path: root/gtk2_ardour/io_selector.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2007-10-31 18:24:43 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2007-10-31 18:24:43 +0000
commit8ab17e96312f1a61c014c50687e15430d5ae786b (patch)
treeeefb889cd64d48058a608f0c19185b2a56d73399 /gtk2_ardour/io_selector.cc
parent1b0f6b1d69bcad74c6127690cebc1c14486e8c1d (diff)
new port design, probably about 90% done (i.e it mostly works and this commit is to stop anyone else from stomping on my changes :)
git-svn-id: svn://localhost/ardour2/trunk@2579 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/io_selector.cc')
-rw-r--r--gtk2_ardour/io_selector.cc16
1 files changed, 12 insertions, 4 deletions
diff --git a/gtk2_ardour/io_selector.cc b/gtk2_ardour/io_selector.cc
index b8598659d7..cecea98470 100644
--- a/gtk2_ardour/io_selector.cc
+++ b/gtk2_ardour/io_selector.cc
@@ -79,14 +79,22 @@ IOSelector::set_state (int r, std::string const & p, bool s)
bool
IOSelector::get_state (int r, std::string const & p) const
{
- const char **connections = _offer_inputs ? _io->output(r)->get_connections() : _io->input(r)->get_connections();
+ vector<string> connections;
+
+ if (_offer_inputs) {
+ _io->output(r)->get_connections (connections);
+ } else {
+ _io->input(r)->get_connections (connections);
+ }
int k = 0;
- while (connections && connections[k]) {
- if (std::string (connections[k]) == p) {
+
+ for (vector<string>::iterator i = connections.begin(); i != connections.end(); ++i) {
+
+ if ((*i)== p) {
return true;
}
-
+
++k;
}