]> sigrok.org Git - pulseview.git/blobdiff - pv/data/decodesignal.hpp
TabularDecView-related bug fixes
[pulseview.git] / pv / data / decodesignal.hpp
index 51745b7baab8a8d3bf1237e80d9fa96bb10a458e..3adcbb93102c5b05b65b58340de491857fdefaf9 100644 (file)
@@ -82,7 +82,7 @@ struct DecodeSegment
        // Copy constructor is a no-op
        DecodeSegment(DecodeSegment&& ds) { (void)ds; };
 
-       map<const Row*, RowData> annotation_rows;
+       map<const Row*, RowData> annotation_rows;  // Note: Row is the same for all segments while RowData is not
        pv::util::Timestamp start_time;
        double samplerate;
        int64_t samples_decoded_incl, samples_decoded_excl;
@@ -124,7 +124,7 @@ public:
 
        void set_initial_pin_state(const uint16_t channel_id, const int init_state);
 
-       double samplerate() const;
+       virtual double get_samplerate() const;
        const pv::util::Timestamp start_time() const;
 
        /**