X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdata%2Fdecoderstack.cpp;h=74ad7d362d0b2fe1e93dc31e928202b06689d23c;hp=073dcd523ec44146fb067cadd9957d5c523f2d76;hb=a2d4b5512a87a5d60e09fd69b6eec34332c714de;hpb=636782c1f942d1acdb56a0561c2e0fd52cc39ddb diff --git a/pv/data/decoderstack.cpp b/pv/data/decoderstack.cpp index 073dcd52..74ad7d36 100644 --- a/pv/data/decoderstack.cpp +++ b/pv/data/decoderstack.cpp @@ -246,11 +246,17 @@ void DecoderStack::decode_proc(shared_ptr data) assert(data); + // Check we have a snapshot of data const deque< shared_ptr > &snapshots = data->get_snapshots(); if (snapshots.empty()) return; + // Check that all decoders have the required probes + BOOST_FOREACH(const shared_ptr &dec, _stack) + if (!dec->have_required_probes()) + return; + const shared_ptr &snapshot = snapshots.front(); const int64_t sample_count = snapshot->get_sample_count();