From: Soeren Apel Date: Thu, 5 Apr 2018 17:03:20 +0000 (+0200) Subject: DecodeSignal: Use srd_session_terminate_reset() for multi-segment data X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=90ca4cc8a481c6ac6fde754fbcdf6ca2f3ba2231;p=pulseview.git DecodeSignal: Use srd_session_terminate_reset() for multi-segment data --- diff --git a/pv/data/decodesignal.cpp b/pv/data/decodesignal.cpp index 1e005391..ecdacdef 100644 --- a/pv/data/decodesignal.cpp +++ b/pv/data/decodesignal.cpp @@ -979,9 +979,8 @@ void DecodeSignal::decode_proc() segments_.at(current_segment_id_).samplerate = input_segment->samplerate(); segments_.at(current_segment_id_).start_time = input_segment->start_time(); - // Reset decoder state - stop_srd_session(); - start_srd_session(); + // Reset decoder state but keep the decoder stack intact + terminate_srd_session(); } else { // All segments have been processed decode_finished();