projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fc921b2
)
Check required probes before starting the decode thread
author
Joel Holdsworth
<joel@airwebreathe.org.uk>
Mon, 3 Mar 2014 22:03:57 +0000
(22:03 +0000)
committer
Joel Holdsworth
<joel@airwebreathe.org.uk>
Mon, 3 Mar 2014 22:41:41 +0000
(22:41 +0000)
pv/data/decoderstack.cpp
patch
|
blob
|
history
diff --git
a/pv/data/decoderstack.cpp
b/pv/data/decoderstack.cpp
index f642b11eaf92db972f4c0c01745db0b42ace3b87..c197e019fd16c6b1e1d5d35ff2aa02d62b9e2bfa 100644
(file)
--- a/
pv/data/decoderstack.cpp
+++ b/
pv/data/decoderstack.cpp
@@
-193,6
+193,14
@@
void DecoderStack::begin_decode()
clear();
clear();
+ // Check that all decoders have the required probes
+ BOOST_FOREACH(const shared_ptr<decode::Decoder> &dec, _stack)
+ if (!dec->have_required_probes()) {
+ _error_message = tr("One or more required probes "
+ "have not been specified");
+ return;
+ }
+
// Add classes
BOOST_FOREACH (const shared_ptr<decode::Decoder> &dec, _stack)
{
// Add classes
BOOST_FOREACH (const shared_ptr<decode::Decoder> &dec, _stack)
{
@@
-320,14
+328,6
@@
void DecoderStack::decode_proc()
assert(data);
assert(_snapshot);
assert(data);
assert(_snapshot);
- // Check that all decoders have the required probes
- BOOST_FOREACH(const shared_ptr<decode::Decoder> &dec, _stack)
- if (!dec->have_required_probes()) {
- _error_message = tr("One or more required probes "
- "have not been specified");
- return;
- }
-
// Create the session
srd_session_new(&session);
assert(session);
// Create the session
srd_session_new(&session);
assert(session);