Split port group/port name at last instead of first period.

git-svn-id: file:///home/vcs/svn/jsweeper/trunk@46 6611ac79-6612-48ef-a1e9-b906f853523e
master
petern 2011-03-17 07:59:43 +00:00
parent 4cad6b8ff8
commit 9f751847a1
1 changed files with 2 additions and 2 deletions

View File

@ -110,8 +110,8 @@ void PortManager::Add(jack_port_t *port)
}
}
size_t pos1 = jack_name.find(':');
size_t pos2 = jack_name.find('.', pos1);
size_t pos1 = jack_name.find_first_of(':');
size_t pos2 = jack_name.find_last_of('.');
// All ports must have a client part
if (pos1 == std::string::npos) return;