aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Hoops2012-08-23 23:11:09 -0400
committerMatthew Hoops2012-08-23 23:11:09 -0400
commitdcdb40f79e4e02101ddd7c017762ec61298f1833 (patch)
tree5e86e8d43ed29e179b5a2664a55e75c62c40f44e
parent829c836e0b86edc07aed4ed1846ac19ba76c6788 (diff)
downloadscummvm-rg350-dcdb40f79e4e02101ddd7c017762ec61298f1833.tar.gz
scummvm-rg350-dcdb40f79e4e02101ddd7c017762ec61298f1833.tar.bz2
scummvm-rg350-dcdb40f79e4e02101ddd7c017762ec61298f1833.zip
VIDEO: Adjust start time after calling rewind() in start()
This wasn't an actual bug, but it makes more sense this way
-rw-r--r--video/video_decoder.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/video/video_decoder.cpp b/video/video_decoder.cpp
index 14826642d7..559880acee 100644
--- a/video/video_decoder.cpp
+++ b/video/video_decoder.cpp
@@ -347,14 +347,14 @@ void VideoDecoder::start() {
_isPlaying = true;
_startTime = g_system->getMillis();
- // Adjust start time if we've seeked to something besides zero time
- if (_lastTimeChange.totalNumberOfFrames() != 0)
- _startTime -= _lastTimeChange.msecs();
-
// If someone previously called stop(), we'll rewind it.
if (_needsRewind)
rewind();
+ // Adjust start time if we've seeked to something besides zero time
+ if (_lastTimeChange.totalNumberOfFrames() != 0)
+ _startTime -= _lastTimeChange.msecs();
+
startAudio();
}