mirror of
https://github.com/libretro/scummvm.git
synced 2024-11-27 11:20:40 +00:00
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:
parent
829c836e0b
commit
dcdb40f79e
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user