pulse-server: fix remove proplist command

`command` is never equal to `COMMAND_UPDATE_CLIENT_PROPLIST`,
instead, the check should be against `COMMAND_REMOVE_CLIENT_PROPLIST`.
This commit is contained in:
Barnabás Pőcze 2023-07-11 16:04:53 +02:00
parent d7c54b3d82
commit 7d6fc0f544

View file

@ -3250,7 +3250,7 @@ static int do_remove_proplist(struct client *client, uint32_t command, uint32_t
items[i].value = NULL;
}
if (command != COMMAND_UPDATE_CLIENT_PROPLIST) {
if (command != COMMAND_REMOVE_CLIENT_PROPLIST) {
struct stream *stream = pw_map_lookup(&client->streams, channel);
if (stream == NULL || stream->type == STREAM_TYPE_UPLOAD)
return -ENOENT;