X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fdata%2Fdecoderstack.cpp;h=f0bdd6bd4f6e3556a3777e7cabfea49d06b2acc6;hb=a007f5ad25bad88cf62443d5471449ce8a6f5f29;hp=333741ad80c2219f1f961566a9a3784319c3b45f;hpb=dd6b500953a32e05681a0304ff6e5e4d9d6f8773;p=pulseview.git diff --git a/pv/data/decoderstack.cpp b/pv/data/decoderstack.cpp index 333741a..f0bdd6b 100644 --- a/pv/data/decoderstack.cpp +++ b/pv/data/decoderstack.cpp @@ -146,6 +146,13 @@ void DecoderStack::clear() _annotations.clear(); } +uint64_t DecoderStack::get_max_sample_count() const +{ + if (_annotations.empty()) + return 0; + return _annotations.back()->end_sample(); +} + void DecoderStack::decode_proc(shared_ptr data) { srd_session *session;