summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2019-02-26 01:57:02 +0100
committerRobin Gareus <robin@gareus.org>2019-02-26 01:57:02 +0100
commit5f1e2d4961b5307d0130f8382ce1a48782a4f07e (patch)
tree514a875ae42c700e0acedce2cc92e8d1c3766ed7
parent75134e8ccf706208d4f4c1354444550ccf967408 (diff)
Fix never-ending timestretch
This is relevant when time-stretch is canceled. In that case stretcher.process() is never called with final=true, and hence stretcher.available() will always return a value >=0.
-rw-r--r--libs/ardour/rb_effect.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/rb_effect.cc b/libs/ardour/rb_effect.cc
index 23ffa94460..70053a3225 100644
--- a/libs/ardour/rb_effect.cc
+++ b/libs/ardour/rb_effect.cc
@@ -302,7 +302,7 @@ RBEffect::run (boost::shared_ptr<Region> r, Progress* progress)
}
}
- while ((avail = stretcher.available()) >= 0) {
+ while ((avail = stretcher.available()) > 0) {
samplecnt_t this_read = min (bufsize, avail);