mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
pulse-server: don't compare string pointers
We always want to clear the provided blocklist from the properties. The logic tries to only clear when there was a blocklist but it checks this by comparing the string pointer to the fallback, which gives a compiler warning.
This commit is contained in:
parent
ab99f4d027
commit
16faacec92
1 changed files with 1 additions and 2 deletions
|
|
@ -292,8 +292,7 @@ struct module *create_module_switch_on_connect(struct impl *impl, const char *ar
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (str != DEFAULT_BLOCKLIST)
|
pw_properties_set(props, "blocklist", NULL);
|
||||||
pw_properties_set(props, "blocklist", NULL);
|
|
||||||
|
|
||||||
module = module_new(impl, &module_switch_on_connect_methods, sizeof(*d));
|
module = module_new(impl, &module_switch_on_connect_methods, sizeof(*d));
|
||||||
if (module == NULL) {
|
if (module == NULL) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue