mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-17 08:56:49 -05:00
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:
parent
900f653860
commit
c4cd8fa73d
1 changed files with 2 additions and 1 deletions
|
|
@ -165,7 +165,7 @@ static bool check_client_property_update(struct pw_impl_client *client,
|
||||||
|
|
||||||
/* Refuse specific restricted keys */
|
/* Refuse specific restricted keys */
|
||||||
if (has_key(ignored, key))
|
if (has_key(ignored, key))
|
||||||
goto deny;
|
goto ignore;
|
||||||
|
|
||||||
/* Refuse all security keys */
|
/* Refuse all security keys */
|
||||||
if (spa_strstartswith(key, "pipewire.sec."))
|
if (spa_strstartswith(key, "pipewire.sec."))
|
||||||
|
|
@ -184,6 +184,7 @@ deny:
|
||||||
if (!spa_streq(old, new))
|
if (!spa_streq(old, new))
|
||||||
pw_log_warn("%p: refuse property update '%s' from '%s' to '%s'",
|
pw_log_warn("%p: refuse property update '%s' from '%s' to '%s'",
|
||||||
client, key, old ? old : "<unset>", new ? new : "<unset>");
|
client, key, old ? old : "<unset>", new ? new : "<unset>");
|
||||||
|
ignore:
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue