impl-client: don't log warning when updating ignored keys

If a client tries to update an ignored key, don't log a warning. Only
log a warning when one of the security properties changed.

This is what we used to do before commit
0dfa05117b

It fixes a warning when a stream disconnects and reconnects because
the serial.id changed.
This commit is contained in:
Wim Taymans 2023-11-23 12:29:55 +01:00
parent 900f653860
commit c4cd8fa73d

View file

@ -165,7 +165,7 @@ static bool check_client_property_update(struct pw_impl_client *client,
/* Refuse specific restricted keys */
if (has_key(ignored, key))
goto deny;
goto ignore;
/* Refuse all security keys */
if (spa_strstartswith(key, "pipewire.sec."))
@ -184,6 +184,7 @@ deny:
if (!spa_streq(old, new))
pw_log_warn("%p: refuse property update '%s' from '%s' to '%s'",
client, key, old ? old : "<unset>", new ? new : "<unset>");
ignore:
return false;
}