mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
builder: make deref safer
Don't try to deref objects that did not fit into the memory. Deref now returns the object
This commit is contained in:
parent
101d2af1be
commit
737b428077
8 changed files with 32 additions and 26 deletions
|
|
@ -189,7 +189,7 @@ spa_alsa_enum_format(struct state *state, uint32_t *index,
|
|||
}
|
||||
spa_pod_builder_pop(&b);
|
||||
|
||||
fmt = spa_pod_builder_pop_deref(&b);
|
||||
fmt = spa_pod_builder_pop(&b);
|
||||
|
||||
(*index)++;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue