mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
fix portengin get_ports() flags API
require all flags to be present (same as jack)
This commit is contained in:
parent
b2a622b73c
commit
56cc3e2407
5 changed files with 5 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue