mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-08 06:58:08 +02:00
wp_properties_match: use wildcard pattern matching instad of strict string comparison
This commit is contained in:
parent
a11cd3b651
commit
7a214e8fab
1 changed files with 1 additions and 2 deletions
|
|
@ -276,10 +276,9 @@ wp_properties_matches (WpProperties * self, WpProperties *other)
|
|||
dict = wp_properties_peek_dict (self);
|
||||
spa_dict_for_each(item, dict) {
|
||||
value = wp_properties_get (other, item->key);
|
||||
if (value && g_strcmp0 (item->value, value) != 0)
|
||||
if (value && !g_pattern_match_simple (value, item->value))
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue