VIDEO: Adjust start time after calling rewind() in start()

This wasn't an actual bug, but it makes more sense this way
This commit is contained in:
Matthew Hoops 2012-08-23 23:11:09 -04:00
parent 829c836e0b
commit dcdb40f79e

View File

@ -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();
}