pulse-server: pass right object to TAG_PROPLIST

This commit is contained in:
Wim Taymans 2020-11-16 11:10:41 +01:00
parent 0ff7321a65
commit 78ab2c3cad

View file

@ -740,7 +740,7 @@ static int do_set_client_name(struct client *client, uint32_t command, uint32_t
PW_KEY_APP_NAME, name); PW_KEY_APP_NAME, name);
} else { } else {
if (message_get(m, if (message_get(m,
TAG_PROPLIST, client->props ? &client->props->dict : NULL, TAG_PROPLIST, client->props,
TAG_INVALID) < 0) TAG_INVALID) < 0)
return -EPROTO; return -EPROTO;
changed++; changed++;
@ -3819,7 +3819,7 @@ static int fill_sample_info(struct client *client, struct message *m,
if (client->version >= 13) { if (client->version >= 13) {
message_put(m, message_put(m,
TAG_PROPLIST, sample->props, TAG_PROPLIST, &sample->props->dict,
TAG_INVALID); TAG_INVALID);
} }
return 0; return 0;