From 7c61104601b14e1b22d1a35151e5bd92ca3e11de Mon Sep 17 00:00:00 2001 From: Soeren Apel Date: Fri, 30 Mar 2018 23:06:31 +0200 Subject: [PATCH] Session: Set "segment complete" flags when no frames are used Without this, A2L conversion is skipped for segment sizes smaller than ConversionBlockSize, e.g. when acquiring only 100 samples. --- pv/session.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pv/session.cpp b/pv/session.cpp index 008ee6a2..e8174915 100644 --- a/pv/session.cpp +++ b/pv/session.cpp @@ -1282,6 +1282,15 @@ void Session::data_feed_in(shared_ptr device, // devices use frames, and for those devices, we need to do it here. { lock_guard lock(data_mutex_); + + if (cur_logic_segment_) + cur_logic_segment_->set_complete(); + + for (auto entry : cur_analog_segments_) { + shared_ptr segment = entry.second; + segment->set_complete(); + } + cur_logic_segment_.reset(); cur_analog_segments_.clear(); } -- 2.30.2