From d39f93af689bc014e3f4da580fe370be12db275c Mon Sep 17 00:00:00 2001 From: Christian Krause Date: Sun, 3 May 2015 12:17:59 +0200 Subject: [PATCH] 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. --- engines/sword25/fmv/movieplayer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/sword25/fmv/movieplayer.cpp b/engines/sword25/fmv/movieplayer.cpp index 5d7dcf2506b5..eb0f0390dc68 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