projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df4c1a0
)
Only update the decode state when decoding
author
Joel Holdsworth
<joel@airwebreathe.org.uk>
Mon, 3 Mar 2014 22:13:40 +0000
(22:13 +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 c197e019fd16c6b1e1d5d35ff2aa02d62b9e2bfa..b252877b7098940c80ca7f82ba91b4466aa3246a 100644
(file)
--- a/
pv/data/decoderstack.cpp
+++ b/
pv/data/decoderstack.cpp
@@
-427,7
+427,8
@@
void DecoderStack::on_data_received()
{
{
unique_lock<mutex> lock(_input_mutex);
- _sample_count = _snapshot->get_sample_count();
+ if (_snapshot)
+ _sample_count = _snapshot->get_sample_count();
}
_input_cond.notify_one();
}
@@
-436,7
+437,8
@@
void DecoderStack::on_frame_ended()
{
{
unique_lock<mutex> lock(_input_mutex);
- _frame_complete = true;
+ if (_snapshot)
+ _frame_complete = true;
}
_input_cond.notify_one();
}