return data;
}
-srd_decoder_inst* Decoder::create_decoder_inst(srd_session *session, int unit_size) const
+srd_decoder_inst* Decoder::create_decoder_inst(srd_session *session) const
{
GHashTable *const opt_hash = g_hash_table_new_full(g_str_hash,
g_str_equal, g_free, (GDestroyNotify)g_variant_unref);
g_hash_table_insert(channels, (*i).first->id, gvar);
}
- srd_inst_channel_set_all(decoder_inst, channels, unit_size);
+ srd_inst_channel_set_all(decoder_inst, channels);
return decoder_inst;
}
bool have_required_channels() const;
srd_decoder_inst* create_decoder_inst(
- srd_session *session, int unit_size) const;
+ srd_session *session) const;
std::set< std::shared_ptr<pv::data::Logic> > get_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;
}
for (const shared_ptr<decode::Decoder> &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)
{