mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
client-node: iterate the buffer datas correctly
Don't just read the first buffer data in the loop but use the loop index to get the right one.
This commit is contained in:
parent
3c11772df6
commit
98163d90df
1 changed files with 1 additions and 1 deletions
|
|
@ -806,7 +806,7 @@ do_port_use_buffers(struct impl *impl,
|
||||||
endptr = SPA_PTROFF(endptr, SPA_ROUND_UP_N(buffers[i]->metas[j].size, 8), void);
|
endptr = SPA_PTROFF(endptr, SPA_ROUND_UP_N(buffers[i]->metas[j].size, 8), void);
|
||||||
}
|
}
|
||||||
for (j = 0; j < buffers[i]->n_datas; j++) {
|
for (j = 0; j < buffers[i]->n_datas; j++) {
|
||||||
struct spa_data *d = buffers[i]->datas;
|
struct spa_data *d = &buffers[i]->datas[j];
|
||||||
if (d->type == SPA_DATA_MemPtr) {
|
if (d->type == SPA_DATA_MemPtr) {
|
||||||
if ((m = pw_mempool_find_ptr(impl->context->pool, d->data)) == NULL ||
|
if ((m = pw_mempool_find_ptr(impl->context->pool, d->data)) == NULL ||
|
||||||
m != mem)
|
m != mem)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue