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

fix reset part of path

This commit is contained in:
Steffen Vogel 2017-09-24 01:15:28 -06:00
parent f8c73553eb
commit 7fd99e2ee7

View file

@ -93,12 +93,6 @@ static void path_source_read(struct path *p, struct path_source *ps)
warn("Pool underrun for path %s", path_name(p));
for (int i = 0; i < mux; i++) {
/** @todo: This is ugly. We should try to make use of the 'restart' hook */
if (read_smps[i]->flags & SAMPLE_IS_FIRST) {
p->sequence = 0;
p->last_sample->length = 0;
}
p->last_sample->sequence = p->sequence++;
mapping_remap(&ps->mappings, p->last_sample, read_smps[i], NULL);