diff --git a/lib/format.cpp b/lib/format.cpp index 0c5b5c5fc..e8ebace97 100644 --- a/lib/format.cpp +++ b/lib/format.cpp @@ -79,7 +79,7 @@ void Format::start(SignalList::Ptr sigs, int fl) { } void Format::start(const std::string &dtypes, int fl) { - flags |= fl; + flags &= fl; signals = std::make_shared(dtypes.c_str()); if (!signals) diff --git a/lib/formats/villas_human.cpp b/lib/formats/villas_human.cpp index f92835f44..1ae588161 100644 --- a/lib/formats/villas_human.cpp +++ b/lib/formats/villas_human.cpp @@ -204,6 +204,6 @@ static char d[] = "VILLAS human readable format"; static LineFormatPlugin< VILLASHumanFormat, n, d, (int)SampleFlags::HAS_TS_ORIGIN | (int)SampleFlags::HAS_SEQUENCE | - (int)SampleFlags::HAS_DATA | (int)SampleFlags::NEW_FRAME, + (int)SampleFlags::HAS_DATA | (int)SampleFlags::NEW_FRAME | (int)SampleFlags::HAS_OFFSET, '\n'> p; diff --git a/lib/path.cpp b/lib/path.cpp index 7a5630ae6..c28ecfe1a 100644 --- a/lib/path.cpp +++ b/lib/path.cpp @@ -524,12 +524,12 @@ void Path::start() { received.reset(); - // We initialize the intial sample + // We initialize the initial sample last_sample = sample_alloc(&pool); if (!last_sample) throw MemoryAllocationError(); - last_sample->length = signals->size(); + last_sample->length = 0; last_sample->signals = signals; last_sample->ts.origin = time_now(); last_sample->sequence = 0;