diff --git a/src/InternLib/Resampling.hh b/src/InternLib/Resampling.hh index 0df252f..142cbcc 100644 --- a/src/InternLib/Resampling.hh +++ b/src/InternLib/Resampling.hh @@ -467,7 +467,7 @@ public: _leftEffect = false; } else { if (_markerPtr->getTargetTime() <= timeCurrent) { - while (_markerPtr->getTargetTime() <= timeCurrent) { + while ((_markerPtr->getTargetTime() <= timeCurrent) && !_markerPtr->isFinished()) { double deltaT = (float) (timeCurrent - _lastTime); if (deltaT <= _gapSize) { double coefT = (float) (_markerPtr->getTargetTime() - _lastTime) / deltaT; -- libgit2 0.21.2