From: Soeren Apel Date: Sat, 21 Apr 2018 09:09:11 +0000 (+0200) Subject: DecodeSignal: When lacking input, retry only when data is available X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=5620539c5113781af252576f9b7af5420e875ba7;p=pulseview.git DecodeSignal: When lacking input, retry only when data is available --- diff --git a/pv/data/decodesignal.cpp b/pv/data/decodesignal.cpp index f7057d06..8483d91d 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