mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
parent
ffab69f651
commit
6c8c58ab4e
1 changed files with 5 additions and 1 deletions
|
|
@ -4392,7 +4392,11 @@ const char ** jack_get_ports (jack_client_t *client,
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (port_name_pattern && port_name_pattern[0]) {
|
if (port_name_pattern && port_name_pattern[0]) {
|
||||||
if (regexec(&port_regex, o->port.name, 0, NULL, 0) == REG_NOMATCH)
|
bool match;
|
||||||
|
match = regexec(&port_regex, o->port.name, 0, NULL, 0) == 0;
|
||||||
|
if (!match && is_port_default(c, o))
|
||||||
|
match = regexec(&port_regex, o->port.system, 0, NULL, 0) == 0;
|
||||||
|
if (!match)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (type_name_pattern && type_name_pattern[0]) {
|
if (type_name_pattern && type_name_pattern[0]) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue