Commit d1f2a5f05d4745e12da9f1003462f3352fb77597

Authored by Benjamin Renard
1 parent 233c5960

Fix bug with sampling under reference parameter (related to #9202)

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/InternLib/Resampling.hh
... ... @@ -467,7 +467,7 @@ public:
467 467 _leftEffect = false;
468 468 } else {
469 469 if (_markerPtr->getTargetTime() <= timeCurrent) {
470   - while (_markerPtr->getTargetTime() <= timeCurrent) {
  470 + while ((_markerPtr->getTargetTime() <= timeCurrent) && !_markerPtr->isFinished()) {
471 471 double deltaT = (float) (timeCurrent - _lastTime);
472 472 if (deltaT <= _gapSize) {
473 473 double coefT = (float) (_markerPtr->getTargetTime() - _lastTime) / deltaT;
... ...