diff options
author | Robin Gareus <robin@gareus.org> | 2015-05-03 22:34:52 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-05-03 22:34:52 +0200 |
commit | 56cc3e24071f504c7dcc2f6fd7bf98468c30c7ac (patch) | |
tree | 24b25a652ce54c26ab4146eb879b3eb83ec4aef2 /libs/backends/alsa/alsa_audiobackend.cc | |
parent | b2a622b73c70b92542ac43b90592ffa84660a180 (diff) |
fix portengin get_ports() flags API
require all flags to be present (same as jack)
Diffstat (limited to 'libs/backends/alsa/alsa_audiobackend.cc')
-rw-r--r-- | libs/backends/alsa/alsa_audiobackend.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/backends/alsa/alsa_audiobackend.cc b/libs/backends/alsa/alsa_audiobackend.cc index be0bbaf2f5..a2ed9f8b07 100644 --- a/libs/backends/alsa/alsa_audiobackend.cc +++ b/libs/backends/alsa/alsa_audiobackend.cc @@ -868,7 +868,7 @@ AlsaAudioBackend::get_ports ( } for (size_t i = 0; i < _ports.size (); ++i) { AlsaPort* 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; |