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-b906f853523emaster
parent
4cad6b8ff8
commit
9f751847a1
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue