X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fdata%2Fdecoderstack.cpp;h=201c87f7fc668596fe49c0b30ffccc4a2b49ec77;hb=c7b03d9daa9574bd633fbac2d5976716f58027f5;hp=912d98c7bc4cda8fc364aaf76e75f9ca23584193;hpb=e45b13b536666034c9b6fe52a9321d749dae3c02;p=pulseview.git diff --git a/pv/data/decoderstack.cpp b/pv/data/decoderstack.cpp index 912d98c..201c87f 100644 --- a/pv/data/decoderstack.cpp +++ b/pv/data/decoderstack.cpp @@ -312,7 +312,7 @@ void DecoderStack::decode_data( i + chunk_sample_count, sample_count); segment_->get_samples(chunk, i, chunk_end); - if (srd_session_send(session, i, i + sample_count, chunk, + if (srd_session_send(session, i, chunk_end, chunk, (chunk_end - i) * unit_size) != SRD_OK) { error_message_ = tr("Decoder reported an error"); break; @@ -334,7 +334,7 @@ void DecoderStack::decode_proc() { optional sample_count; srd_session *session; - srd_decoder_inst *prev_di = NULL; + srd_decoder_inst *prev_di = nullptr; assert(segment_);