mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-12 13:30:15 -05:00
array: update size on delete
This commit is contained in:
parent
2ac2822d4f
commit
e0676fcef8
1 changed files with 2 additions and 1 deletions
|
|
@ -63,8 +63,9 @@ struct pw_array {
|
|||
(pos)++)
|
||||
|
||||
#define pw_array_remove(a,p) \
|
||||
(a)->size -= sizeof(*(p)); \
|
||||
memmove(p, SPA_MEMBER((p), sizeof(*(p)), void), \
|
||||
SPA_PTRDIFF((p), pw_array_end(a)) - sizeof(*(p)));
|
||||
SPA_PTRDIFF(pw_array_end(a),(p)));
|
||||
|
||||
|
||||
/** Initialize the array with given extend \memberof pw_array */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue