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
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user