summaryrefslogtreecommitdiff
path: root/libs/ardour/route.cc
diff options
context:
space:
mode:
authorJesse Chappell <jesse@essej.net>2006-02-20 21:40:20 +0000
committerJesse Chappell <jesse@essej.net>2006-02-20 21:40:20 +0000
commit94ba45c0571e6822268edf0ea3279901d0b93e63 (patch)
treec1d467000ca7b6bb92e7a2b17a27bba7d95f0e07 /libs/ardour/route.cc
parent1d42712574b74600b7731e5737ccac2db185733b (diff)
fixed crash potential issues where nframes may be 0
git-svn-id: svn://localhost/trunk/ardour2@341 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/route.cc')
-rw-r--r--libs/ardour/route.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc
index 5d3cd942e7..7f7b56cc2b 100644
--- a/libs/ardour/route.cc
+++ b/libs/ardour/route.cc
@@ -444,7 +444,7 @@ Route::process_output_buffers (vector<Sample*>& bufs, uint32_t nbufs,
}
}
- if (apply_gain_automation && _session.transport_rolling()) {
+ if (apply_gain_automation && _session.transport_rolling() && nframes > 0) {
_effective_gain = gab[nframes-1];
}