diff options
Diffstat (limited to 'libs/ardour/route.cc')
-rw-r--r-- | libs/ardour/route.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index f32757c169..4e82e89b3e 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -845,7 +845,10 @@ Route::add_redirect (boost::shared_ptr<Redirect> redirect, void *src, uint32_t* _peak_power.push_back(0); } while (_visible_peak_power.size() < potential_max_streams) { - _visible_peak_power.push_back(0); + _visible_peak_power.push_back(-INFINITY); + } + while (_max_peak_power.size() < potential_max_streams) { + _max_peak_power.push_back(-INFINITY); } _redirects.push_back (redirect); @@ -903,7 +906,10 @@ Route::add_redirects (const RedirectList& others, void *src, uint32_t* err_strea _peak_power.push_back(0); } while (_visible_peak_power.size() < potential_max_streams) { - _visible_peak_power.push_back(0); + _visible_peak_power.push_back(-INFINITY); + } + while (_max_peak_power.size() < potential_max_streams) { + _max_peak_power.push_back(-INFINITY); } _redirects.push_back (*i); |