mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
loopback: simplify code
This commit is contained in:
parent
b03e0b2d27
commit
26238d5a51
1 changed files with 2 additions and 4 deletions
|
@ -70,10 +70,8 @@ int loopback_internal_read(struct vnode *n, struct sample * const smps[], unsign
|
|||
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue