aboutsummaryrefslogtreecommitdiff
path: root/video/video_decoder.cpp
diff options
context:
space:
mode:
authorMatthew Hoops2012-12-13 17:46:02 -0500
committerMatthew Hoops2012-12-13 17:46:02 -0500
commit0bcd4414050e2b8571de0086c1820982ff886320 (patch)
tree2d046eb864fcf120dbb01cf02699509c39a39ea3 /video/video_decoder.cpp
parent7bbd26c9a85c797ac3d6bcced327b0301d84ca6f (diff)
downloadscummvm-rg350-0bcd4414050e2b8571de0086c1820982ff886320.tar.gz
scummvm-rg350-0bcd4414050e2b8571de0086c1820982ff886320.tar.bz2
scummvm-rg350-0bcd4414050e2b8571de0086c1820982ff886320.zip
VIDEO: Fix seeking when playing with a custom rate
Diffstat (limited to 'video/video_decoder.cpp')
-rw-r--r--video/video_decoder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/video_decoder.cpp b/video/video_decoder.cpp
index 4d9f19cfd9..ab12cfd971 100644
--- a/video/video_decoder.cpp
+++ b/video/video_decoder.cpp
@@ -318,7 +318,7 @@ bool VideoDecoder::seek(const Audio::Timestamp &time) {
// Also reset our start time
if (isPlaying()) {
startAudio();
- _startTime = g_system->getMillis() - time.msecs();
+ _startTime = g_system->getMillis() - (time.msecs() / _playbackRate).toInt();
}
resetPauseStartTime();