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:
parent
fe9119337a
commit
169e58422f
1 changed files with 2 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue