mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
builder: pass NULL to _raw to reserve memory
This commit is contained in:
parent
2a487d5fdb
commit
632c8440f8
1 changed files with 1 additions and 1 deletions
|
|
@ -137,7 +137,7 @@ static inline int spa_pod_builder_raw(struct spa_pod_builder *builder, const voi
|
|||
spa_callbacks_call_res(&builder->callbacks, struct spa_pod_builder_callbacks, res,
|
||||
overflow, 0, offset + size);
|
||||
}
|
||||
if (res == 0)
|
||||
if (res == 0 && data)
|
||||
memcpy(SPA_MEMBER(builder->data, offset, void), data, size);
|
||||
|
||||
builder->state.offset += size;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue