aboutsummaryrefslogtreecommitdiff
path: root/video/video_decoder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'video/video_decoder.cpp')
-rw-r--r--video/video_decoder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/video_decoder.cpp b/video/video_decoder.cpp
index b560143e93..4d9f19cfd9 100644
--- a/video/video_decoder.cpp
+++ b/video/video_decoder.cpp
@@ -418,7 +418,7 @@ void VideoDecoder::setRate(const Common::Rational &rate) {
_startTime = g_system->getMillis();
// Adjust start time if we've seeked to something besides zero time
- if (_lastTimeChange.totalNumberOfFrames() != 0)
+ if (_lastTimeChange != 0)
_startTime -= (_lastTimeChange.msecs() / _playbackRate).toInt();
startAudio();