aboutsummaryrefslogtreecommitdiff
path: root/video/video_decoder.cpp
diff options
context:
space:
mode:
authorMatthew Hoops2012-07-22 00:58:38 -0400
committerMatthew Hoops2012-07-22 00:58:38 -0400
commit9bf17934d3fb6ab30c64dd87dfed1e5f154bca51 (patch)
tree3be80ff08eafe750651cb5cd7839ecf142097d9c /video/video_decoder.cpp
parent4c9c22b374569e9f93b30137b57eaa2912beffc4 (diff)
downloadscummvm-rg350-9bf17934d3fb6ab30c64dd87dfed1e5f154bca51.tar.gz
scummvm-rg350-9bf17934d3fb6ab30c64dd87dfed1e5f154bca51.tar.bz2
scummvm-rg350-9bf17934d3fb6ab30c64dd87dfed1e5f154bca51.zip
VIDEO: Take audio start time into account when syncing to audio
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 4ac914927e..5946a7d79c 100644
--- a/video/video_decoder.cpp
+++ b/video/video_decoder.cpp
@@ -200,7 +200,7 @@ uint32 AdvancedVideoDecoder::getTime() const {
uint32 time = ((const AudioTrack *)*it)->getRunningTime();
if (time != 0)
- return time + _audioStartOffset.msecs();
+ return time + (*it)->getStartTime().msecs() + _audioStartOffset.msecs();
}
}
}