mem: add size of tag to make it possible to check subtags

This commit is contained in:
Wim Taymans 2019-08-01 13:55:03 +02:00
parent acf931abc5
commit f1ea49d6e9
5 changed files with 10 additions and 8 deletions

View file

@ -402,7 +402,7 @@ client_node_set_io(void *object,
uint32_t tag[5] = { data->remote_id, id, };
if (memid == SPA_ID_INVALID) {
if ((mm = pw_mempool_find_tag(proxy->remote->pool, tag)) != NULL)
if ((mm = pw_mempool_find_tag(proxy->remote->pool, tag, sizeof(tag))) != NULL)
pw_memmap_free(mm);
mm = ptr = NULL;
size = 0;
@ -713,7 +713,7 @@ client_node_port_set_io(void *object,
}
if (memid == SPA_ID_INVALID) {
if ((mm = pw_mempool_find_tag(proxy->remote->pool, tag)) != NULL)
if ((mm = pw_mempool_find_tag(proxy->remote->pool, tag, sizeof(tag))) != NULL)
pw_memmap_free(mm);
mm = ptr = NULL;