projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ce0e73
)
DecodeSignal: Use srd_session_terminate_reset() for multi-segment data
author
Soeren Apel
<soeren@apelpie.net>
Thu, 5 Apr 2018 17:03:20 +0000
(19:03 +0200)
committer
Uwe Hermann
<uwe@hermann-uwe.de>
Sun, 8 Apr 2018 17:43:03 +0000
(19:43 +0200)
pv/data/decodesignal.cpp
patch
|
blob
|
history
diff --git
a/pv/data/decodesignal.cpp
b/pv/data/decodesignal.cpp
index 1e0053910a9f3a68e3e948c70a817127f5c553a0..ecdacdefa6ec09d53c6a1e8b343b40e6f661e96b 100644
(file)
--- 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();