Fixed meter crash bug.
git-svn-id: svn://localhost/ardour2/branches/midi@1771 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
@@ -72,12 +72,13 @@ PeakMeter::setup (const ChanCount& in)
|
||||
while (_peak_power.size() > limit) {
|
||||
_peak_power.pop_back();
|
||||
_visible_peak_power.pop_back();
|
||||
_max_peak_power.push_back(minus_infinity());
|
||||
}
|
||||
|
||||
while (_peak_power.size() < limit) {
|
||||
_peak_power.push_back (0);
|
||||
_visible_peak_power.push_back (minus_infinity());
|
||||
_max_peak_power.push_back (minus_infinity());
|
||||
_peak_power.push_back(0);
|
||||
_visible_peak_power.push_back(minus_infinity());
|
||||
_max_peak_power.push_back(minus_infinity());
|
||||
}
|
||||
|
||||
assert(_peak_power.size() == limit);
|
||||
|
||||
Reference in New Issue
Block a user