aboutsummaryrefslogtreecommitdiff
path: root/video
diff options
context:
space:
mode:
authorMatthew Hoops2012-07-23 21:03:49 -0400
committerMatthew Hoops2012-07-23 21:03:49 -0400
commit3a780a63db79c2a1b2527e6510182a74f6fcfe12 (patch)
treee64433952e217428a5a0f1f3fe2411333e23446b /video
parentd4231fda1cb2399e123054ddaaeca2b4c2749966 (diff)
downloadscummvm-rg350-3a780a63db79c2a1b2527e6510182a74f6fcfe12.tar.gz
scummvm-rg350-3a780a63db79c2a1b2527e6510182a74f6fcfe12.tar.bz2
scummvm-rg350-3a780a63db79c2a1b2527e6510182a74f6fcfe12.zip
VIDEO: Set _startTime when rewinding and seeking
Diffstat (limited to 'video')
-rw-r--r--video/video_decoder.cpp2
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;
}