mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
mem: add size of tag to make it possible to check subtags
This commit is contained in:
parent
acf931abc5
commit
f1ea49d6e9
5 changed files with 10 additions and 8 deletions
|
|
@ -350,7 +350,7 @@ static int impl_node_set_io(void *object, uint32_t id, void *data, size_t size)
|
|||
mem_size = size;
|
||||
}
|
||||
else {
|
||||
if ((mm = pw_mempool_find_tag(this->client->pool, tag)) != NULL)
|
||||
if ((mm = pw_mempool_find_tag(this->client->pool, tag, sizeof(tag))) != NULL)
|
||||
pw_memmap_free(mm);
|
||||
|
||||
memid = SPA_ID_INVALID;
|
||||
|
|
@ -663,7 +663,7 @@ static int do_port_set_io(struct impl *impl,
|
|||
mem_size = size;
|
||||
}
|
||||
else {
|
||||
if ((mm = pw_mempool_find_tag(this->client->pool, tag)) != NULL)
|
||||
if ((mm = pw_mempool_find_tag(this->client->pool, tag, sizeof(tag))) != NULL)
|
||||
pw_memmap_free(mm);
|
||||
|
||||
memid = SPA_ID_INVALID;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue