]> sigrok.org Git - libsigrokflow.git/commitdiff
Fix a typo (unitsite_ -> unitsize_).
authorUwe Hermann <redacted>
Thu, 17 Jan 2019 23:15:10 +0000 (00:15 +0100)
committerUwe Hermann <redacted>
Thu, 17 Jan 2019 23:15:10 +0000 (00:15 +0100)
include/libsigrokflow/legacy_decoder.hpp
src/legacy_decoder.cpp

index f465c22bb704fe4d3e54e5740cbd4743c9d673ba..f8af5c90fab86f57c6fb1d6bfb8420f034a482d9 100644 (file)
@@ -67,7 +67,7 @@ public:
 private:
        struct srd_session *session_;
        uint64_t abs_ss_;
-       uint64_t unitsite_;
+       uint64_t unitsize_;
 };
 #endif
 
index ac3474fd79cc97702d406f305cdfa38f48c485c0..9a0c94d8c6eb68af533683d56af02f7e171874db 100644 (file)
@@ -65,7 +65,7 @@ Glib::RefPtr<LegacyDecoder>LegacyDecoder::create(
                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;
 }
@@ -79,9 +79,9 @@ Gst::FlowReturn LegacyDecoder::render_vfunc(const Glib::RefPtr<Gst::Buffer> &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);