throw runtime_error("Failed to create element - plugin not registered?");
auto decoder = Glib::RefPtr<LegacyDecoder>::cast_static(element);
decoder->session_ = libsigrokdecode_session;
- decoder->unitsite_ = unitsize;
+ decoder->unitsize_ = unitsize;
return decoder;
}
{
Gst::MapInfo info;
buffer->map(info, Gst::MAP_READ);
- uint64_t num_samples = info.get_size() / unitsite_;
+ uint64_t num_samples = info.get_size() / unitsize_;
srd_session_send(session_, abs_ss_, abs_ss_ + num_samples,
- info.get_data(), info.get_size(), unitsite_);
+ info.get_data(), info.get_size(), unitsize_);
abs_ss_ += num_samples;
buffer->unmap(info);