X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdata%2Fdecodesignal.cpp;h=8483d91d0ce4a2b41de67a07605d2a757d761137;hp=f7057d06e07cef8ecf6d232ee48308ffcab47de4;hb=5620539c5113781af252576f9b7af5420e875ba7;hpb=3b5282a20ec134853318b70441b32bf4a91e20c2 diff --git a/pv/data/decodesignal.cpp b/pv/data/decodesignal.cpp index f7057d0..8483d91 100644 --- a/pv/data/decodesignal.cpp +++ b/pv/data/decodesignal.cpp @@ -1199,6 +1199,12 @@ void DecodeSignal::on_data_cleared() void DecodeSignal::on_data_received() { + // If we detected a lack of input data when trying to start decoding, + // we have set an error message. Only try again if we now have data + // to work with + if ((!error_message_.isEmpty()) && (get_input_segment_count() == 0)) + return; + if (!logic_mux_thread_.joinable()) begin_decode(); else