]> sigrok.org Git - pulseview.git/commitdiff
DecodeSignal: Use srd_session_terminate_reset() for multi-segment data
authorSoeren Apel <redacted>
Thu, 5 Apr 2018 17:03:20 +0000 (19:03 +0200)
committerUwe Hermann <redacted>
Sun, 8 Apr 2018 17:43:03 +0000 (19:43 +0200)
pv/data/decodesignal.cpp

index 1e0053910a9f3a68e3e948c70a817127f5c553a0..ecdacdefa6ec09d53c6a1e8b343b40e6f661e96b 100644 (file)
@@ -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();