meta: make safer find_meta_data function

This commit is contained in:
Wim Taymans 2018-07-09 12:04:23 +02:00
parent 33427b4cd3
commit c98fbfe0a9
16 changed files with 59 additions and 32 deletions

View file

@ -515,7 +515,7 @@ impl_node_port_use_buffers(struct spa_node *node,
b->buf = buffers[i];
b->flags = 0;
b->h = spa_buffer_find_meta(b->buf, this->type.meta.Header);
b->h = spa_buffer_find_meta_data(b->buf, this->type.meta.Header, sizeof(*b->h));
if (!((d[0].type == this->type.data.MemFd ||
d[0].type == this->type.data.DmaBuf ||