mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 01:36:56 +02:00
Quick bugfix
This commit is contained in:
parent
1e97a69b51
commit
3a5a9b359e
1 changed files with 5 additions and 5 deletions
|
@ -87,11 +87,6 @@ void SnapshotAnimated::captureFrames() {
|
||||||
|
|
||||||
// If that was the last frame...
|
// If that was the last frame...
|
||||||
if ((SnapshotAnimated::snapshotAnimatedTimestamp - SnapshotAnimated::snapshotAnimatedFirstFrameTimestamp) >= (SnapshotAnimated::snapshotAnimatedDuration.get() * MSECS_PER_SECOND)) {
|
if ((SnapshotAnimated::snapshotAnimatedTimestamp - SnapshotAnimated::snapshotAnimatedFirstFrameTimestamp) >= (SnapshotAnimated::snapshotAnimatedDuration.get() * MSECS_PER_SECOND)) {
|
||||||
// Stop the snapshot QTimer. This action by itself DOES NOT GUARANTEE
|
|
||||||
// that the slot will not be called again in the future.
|
|
||||||
// See: http://lists.qt-project.org/pipermail/qt-interest-old/2009-October/013926.html
|
|
||||||
SnapshotAnimated::snapshotAnimatedTimer->stop();
|
|
||||||
delete SnapshotAnimated::snapshotAnimatedTimer;
|
|
||||||
SnapshotAnimated::snapshotAnimatedTimerRunning = false;
|
SnapshotAnimated::snapshotAnimatedTimerRunning = false;
|
||||||
// Reset the current frame timestamp
|
// Reset the current frame timestamp
|
||||||
SnapshotAnimated::snapshotAnimatedTimestamp = 0;
|
SnapshotAnimated::snapshotAnimatedTimestamp = 0;
|
||||||
|
@ -99,6 +94,11 @@ void SnapshotAnimated::captureFrames() {
|
||||||
|
|
||||||
// Kick off the thread that'll pack the frames into the GIF
|
// Kick off the thread that'll pack the frames into the GIF
|
||||||
QtConcurrent::run(processFrames);
|
QtConcurrent::run(processFrames);
|
||||||
|
// Stop the snapshot QTimer. This action by itself DOES NOT GUARANTEE
|
||||||
|
// that the slot will not be called again in the future.
|
||||||
|
// See: http://lists.qt-project.org/pipermail/qt-interest-old/2009-October/013926.html
|
||||||
|
SnapshotAnimated::snapshotAnimatedTimer->stop();
|
||||||
|
delete SnapshotAnimated::snapshotAnimatedTimer;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue