X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fdata%2Fdecoderstack.cpp;h=74ad7d362d0b2fe1e93dc31e928202b06689d23c;hb=1aef69f9792d8c032269afd6cfb2122b125aea4d;hp=073dcd523ec44146fb067cadd9957d5c523f2d76;hpb=dd048a7ec035447c051c7937ce04aca5be065b4e;p=pulseview.git diff --git a/pv/data/decoderstack.cpp b/pv/data/decoderstack.cpp index 073dcd5..74ad7d3 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();