mirror of
https://github.com/overte-org/overte.git
synced 2025-07-17 21:36:58 +02:00
fix frozen bots
This commit is contained in:
parent
7ba5ea4229
commit
00a4fe044a
1 changed files with 6 additions and 0 deletions
|
@ -166,6 +166,12 @@ void Deck::processFrames() {
|
||||||
if (!overLimit) {
|
if (!overLimit) {
|
||||||
auto nextFrameTime = nextClip->positionFrameTime();
|
auto nextFrameTime = nextClip->positionFrameTime();
|
||||||
nextInterval = (int)Frame::frameTimeToMilliseconds(nextFrameTime - _position);
|
nextInterval = (int)Frame::frameTimeToMilliseconds(nextFrameTime - _position);
|
||||||
|
if (nextInterval < 0) {
|
||||||
|
qCWarning(recordingLog) << " Unexected nextInterval < 0 nextFrameTime:" << nextFrameTime
|
||||||
|
<< "_position:" << _position << "-- setting nextInterval to 0";
|
||||||
|
nextInterval = 0;
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef WANT_RECORDING_DEBUG
|
#ifdef WANT_RECORDING_DEBUG
|
||||||
qCDebug(recordingLog) << "Now " << _position;
|
qCDebug(recordingLog) << "Now " << _position;
|
||||||
qCDebug(recordingLog) << "Next frame time " << nextInterval;
|
qCDebug(recordingLog) << "Next frame time " << nextInterval;
|
||||||
|
|
Loading…
Reference in a new issue