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:
Wim Taymans 2017-11-13 11:50:50 +01:00
parent 101d2af1be
commit 737b428077
8 changed files with 32 additions and 26 deletions

View file

@ -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)++;