projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51d4a9a
)
Print an error message, rather than asserting if the srd_inst_new fails
author
Joel Holdsworth
<joel@airwebreathe.org.uk>
Thu, 10 Oct 2013 17:07:20 +0000
(18:07 +0100)
committer
Joel Holdsworth
<joel@airwebreathe.org.uk>
Sun, 13 Oct 2013 11:39:38 +0000
(12:39 +0100)
pv/data/decoder.cpp
patch
|
blob
|
history
diff --git
a/pv/data/decoder.cpp
b/pv/data/decoder.cpp
index 00b9e0b7efb0b87b3d508828922707e46f73f5e6..2cfb3a99a9b289f49103718a7169301d66ceb198 100644
(file)
--- a/
pv/data/decoder.cpp
+++ b/
pv/data/decoder.cpp
@@
-116,7
+116,10
@@
void Decoder::init_decoder()
}
_decoder_inst = srd_inst_new(_decoder->id, _options);
- assert(_decoder_inst);
+ if(!_decoder_inst) {
+ qDebug() << "Failed to initialise decoder";
+ return;
+ }
_decoder_inst->data_samplerate = _samplerate;