mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
meta: make safer find_meta_data function
This commit is contained in:
parent
33427b4cd3
commit
c98fbfe0a9
16 changed files with 59 additions and 32 deletions
|
|
@ -107,7 +107,7 @@ void gst_pipewire_pool_wrap_buffer (GstPipeWirePool *pool, struct pw_buffer *b)
|
|||
|
||||
data->pool = gst_object_ref (pool);
|
||||
data->owner = NULL;
|
||||
data->header = spa_buffer_find_meta (b->buffer, t->meta.Header);
|
||||
data->header = spa_buffer_find_meta_data (b->buffer, t->meta.Header, sizeof(*data->header));
|
||||
data->flags = GST_BUFFER_FLAGS (buf);
|
||||
data->b = b;
|
||||
data->buf = buf;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue