From: Uwe Hermann Date: Thu, 17 Jan 2019 23:15:10 +0000 (+0100) Subject: Fix a typo (unitsite_ -> unitsize_). X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=2f7d45de7179101b16a80e9524bcc15de00ece78;p=libsigrokflow.git Fix a typo (unitsite_ -> unitsize_). --- diff --git a/include/libsigrokflow/legacy_decoder.hpp b/include/libsigrokflow/legacy_decoder.hpp index f465c22..f8af5c9 100644 --- a/include/libsigrokflow/legacy_decoder.hpp +++ b/include/libsigrokflow/legacy_decoder.hpp @@ -67,7 +67,7 @@ public: private: struct srd_session *session_; uint64_t abs_ss_; - uint64_t unitsite_; + uint64_t unitsize_; }; #endif diff --git a/src/legacy_decoder.cpp b/src/legacy_decoder.cpp index ac3474f..9a0c94d 100644 --- a/src/legacy_decoder.cpp +++ b/src/legacy_decoder.cpp @@ -65,7 +65,7 @@ Glib::RefPtrLegacyDecoder::create( throw runtime_error("Failed to create element - plugin not registered?"); auto decoder = Glib::RefPtr::cast_static(element); decoder->session_ = libsigrokdecode_session; - decoder->unitsite_ = unitsize; + decoder->unitsize_ = unitsize; return decoder; } @@ -79,9 +79,9 @@ Gst::FlowReturn LegacyDecoder::render_vfunc(const Glib::RefPtr &buf { 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);