aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Krause2015-05-03 12:17:59 +0200
committerChristian Krause2015-05-03 12:19:17 +0200
commitd39f93af689bc014e3f4da580fe370be12db275c (patch)
tree74d683305a0830878da9c87faa532d8fb8890896
parent2fb49bd7593406bb88799f04ebc058acbb510cb2 (diff)
downloadscummvm-rg350-d39f93af689bc014e3f4da580fe370be12db275c.tar.gz
scummvm-rg350-d39f93af689bc014e3f4da580fe370be12db275c.tar.bz2
scummvm-rg350-d39f93af689bc014e3f4da580fe370be12db275c.zip
SWORD25: Draw next movie frame only when an update is needed
This fixes the problem that the movies are played too fast and get out of sync with additionally played speech samples.
-rw-r--r--engines/sword25/fmv/movieplayer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sword25/fmv/movieplayer.cpp b/engines/sword25/fmv/movieplayer.cpp
index 5d7dcf2506..eb0f0390dc 100644
--- a/engines/sword25/fmv/movieplayer.cpp
+++ b/engines/sword25/fmv/movieplayer.cpp
@@ -123,7 +123,7 @@ void MoviePlayer::update() {
if (_decoder.endOfVideo()) {
// Movie complete, so unload the movie
unloadMovie();
- } else {
+ } else if (_decoder.needsUpdate()) {
const Graphics::Surface *s = _decoder.decodeNextFrame();
if (s) {
// Transfer the next frame