1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

loopback: align code with loopback_internal

This commit is contained in:
Steffen Vogel 2021-07-12 15:34:47 +02:00
parent fe9119337a
commit 169e58422f

View file

@ -105,10 +105,8 @@ int loopback_read(struct vnode *n, struct sample * const smps[], unsigned cnt)
avail = queue_signalled_pull_many(&l->queue, (void **) cpys, cnt);
for (int i = 0; i < avail; i++) {
sample_copy(smps[i], cpys[i]);
sample_decref(cpys[i]);
}
sample_copy_many(smps, cpys, avail);
sample_decref_many(cpys, avail);
return avail;
}