From: Soeren Apel Date: Fri, 30 Mar 2018 21:06:31 +0000 (+0200) Subject: Session: Set "segment complete" flags when no frames are used X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=commitdiff_plain;h=7c61104601b14e1b22d1a35151e5bd92ca3e11de;ds=sidebyside 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. --- 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(); }