]> sigrok.org Git - pulseview.git/commit
DecodeSignal: only pass non-zero sample rate to decoders
authorGerhard Sittig <redacted>
Sun, 28 Jan 2018 20:02:54 +0000 (21:02 +0100)
committerUwe Hermann <redacted>
Sun, 28 Jan 2018 20:58:16 +0000 (21:58 +0100)
commit4349dc21e726fe6e9e1fba59f9f06a9bdc718078
tree6ea4032b96e07b15bf895c5ad601714cab3af504
parentba0c5f899c654a22506adb799f23f718421bf453
DecodeSignal: only pass non-zero sample rate to decoders

As reported in bug #1118 not all input sources provide a samplerate, and
decoder instances may not cope with a rate spec of 0. Only pass non-zero
sample rates to the decoder stack. This improves robustness in addition
to the specific fix for #1118 in the decoders' implementations.
pv/data/decodesignal.cpp