diff options
author | Matthew Hoops | 2012-07-23 21:03:49 -0400 |
---|---|---|
committer | Matthew Hoops | 2012-07-23 21:03:49 -0400 |
commit | 3a780a63db79c2a1b2527e6510182a74f6fcfe12 (patch) | |
tree | e64433952e217428a5a0f1f3fe2411333e23446b | |
parent | d4231fda1cb2399e123054ddaaeca2b4c2749966 (diff) | |
download | scummvm-rg350-3a780a63db79c2a1b2527e6510182a74f6fcfe12.tar.gz scummvm-rg350-3a780a63db79c2a1b2527e6510182a74f6fcfe12.tar.bz2 scummvm-rg350-3a780a63db79c2a1b2527e6510182a74f6fcfe12.zip |
VIDEO: Set _startTime when rewinding and seeking
-rw-r--r-- | video/video_decoder.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/video/video_decoder.cpp b/video/video_decoder.cpp index ad176da73b..97f8eec7bb 100644 --- a/video/video_decoder.cpp +++ b/video/video_decoder.cpp @@ -263,6 +263,7 @@ bool AdvancedVideoDecoder::rewind() { return false; _audioStartOffset = 0; + _startTime = g_system->getMillis(); return true; } @@ -290,6 +291,7 @@ bool AdvancedVideoDecoder::seek(const Audio::Timestamp &time) { return false; _audioStartOffset = time; + _startTime = g_system->getMillis() - time.msecs(); return true; } |