Merge pull request #10321 from ZappoMan/fixFrozenBots

fix frozen bots
This commit is contained in:
anshuman64 2017-05-01 09:33:33 -07:00 committed by GitHub
commit 5731242e7f

View file

@ -166,6 +166,12 @@ void Deck::processFrames() {
if (!overLimit) {
auto nextFrameTime = nextClip->positionFrameTime();
nextInterval = (int)Frame::frameTimeToMilliseconds(nextFrameTime - _position);
if (nextInterval < 0) {
qCWarning(recordingLog) << "Unexpected nextInterval < 0 nextFrameTime:" << nextFrameTime
<< "_position:" << _position << "-- setting nextInterval to 0";
nextInterval = 0;
}
#ifdef WANT_RECORDING_DEBUG
qCDebug(recordingLog) << "Now " << _position;
qCDebug(recordingLog) << "Next frame time " << nextInterval;