diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-06-02 12:17:50 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-06-02 12:17:50 -0400 |
commit | 25797d86181feed9c205798f0e515c5fd3cb6981 (patch) | |
tree | 88b1674d7f60c83573d5230fae23c9bab2dad140 /libs/canvas/wave_view.cc | |
parent | 59028b6c803beabdff4983b5be78232db965a678 (diff) |
don't use the return value from AudioRegion::read_peaks() because it is either zero or n_peaks
Diffstat (limited to 'libs/canvas/wave_view.cc')
-rw-r--r-- | libs/canvas/wave_view.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/canvas/wave_view.cc b/libs/canvas/wave_view.cc index 11c1da21ed..a756cfe430 100644 --- a/libs/canvas/wave_view.cc +++ b/libs/canvas/wave_view.cc @@ -873,7 +873,7 @@ WaveView::generate_image (boost::shared_ptr<WaveViewThreadRequest> req, bool in_ if (peaks_read > 0) { - for (framecnt_t i = 0; i < peaks_read; ++i) { + for (framecnt_t i = 0; i < n_peaks; ++i) { peaks[i].max *= _amplitude_above_axis; peaks[i].min *= _amplitude_above_axis; } |