X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fdata%2Fdecoderstack.cpp;h=ef497f72bb29e2e80eaba88676340c6d499949d7;hb=ca810a8ce1f0257e78ad00bc8f794c68f7438cad;hp=354802407fa55487899e622bdc05ff2a176a40ce;hpb=f32905530347e1020d5ce7959123cf797c9a4829;p=pulseview.git diff --git a/pv/data/decoderstack.cpp b/pv/data/decoderstack.cpp index 3548024..ef497f7 100644 --- a/pv/data/decoderstack.cpp +++ b/pv/data/decoderstack.cpp @@ -313,7 +313,7 @@ void DecoderStack::decode_data( segment_->get_samples(chunk, i, chunk_end); if (srd_session_send(session, i, chunk_end, chunk, - (chunk_end - i) * unit_size) != SRD_OK) { + (chunk_end - i) * unit_size, unit_size) != SRD_OK) { error_message_ = tr("Decoder reported an error"); break; } @@ -347,7 +347,7 @@ void DecoderStack::decode_proc() for (const shared_ptr &dec : stack_) { - srd_decoder_inst *const di = dec->create_decoder_inst(session, unit_size); + srd_decoder_inst *const di = dec->create_decoder_inst(session); if (!di) {