fix portengin get_ports() flags API

require all flags to be present (same as jack)
This commit is contained in:
Robin Gareus 2015-05-03 22:34:52 +02:00
parent b2a622b73c
commit 56cc3e2407
5 changed files with 5 additions and 5 deletions

View file

@ -779,7 +779,7 @@ CoreAudioBackend::get_ports (
}
for (size_t i = 0; i < _ports.size (); ++i) {
CoreBackendPort* port = _ports[i];
if ((port->type () == type) && (port->flags () & flags)) {
if ((port->type () == type) && flags == (port->flags () & flags)) {
if (!use_regexp || !regexec (&port_regex, port->name ().c_str (), 0, NULL, 0)) {
port_names.push_back (port->name ());
++rv;