13
0

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.
This commit is contained in:
Robin Gareus 2019-02-26 01:57:02 +01:00
parent 75134e8ccf
commit 5f1e2d4961
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -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);