X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fdata%2Fdecoderstack.cpp;h=201c87f7fc668596fe49c0b30ffccc4a2b49ec77;hb=c7b03d9daa9574bd633fbac2d5976716f58027f5;hp=e9876d21bc268299eeab4c1fd9d835a237001fd7;hpb=f3d66e52ed6b454ea7a0662d5e6367e230116a2b;p=pulseview.git diff --git a/pv/data/decoderstack.cpp b/pv/data/decoderstack.cpp index e9876d2..201c87f 100644 --- a/pv/data/decoderstack.cpp +++ b/pv/data/decoderstack.cpp @@ -272,7 +272,7 @@ void DecoderStack::begin_decode() decode_thread_ = std::thread(&DecoderStack::decode_proc, this); } -uint64_t DecoderStack::get_max_sample_count() const +uint64_t DecoderStack::max_sample_count() const { uint64_t max_sample_count = 0; @@ -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_);