Skip to content

Commit

Permalink
SWORD25: Draw next movie frame only when an update is needed
Browse files Browse the repository at this point in the history
This fixes the problem that the movies are played too fast
and get out of sync with additionally played speech samples.
  • Loading branch information
chkr-private committed May 3, 2015
1 parent 2fb49bd commit d39f93a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/sword25/fmv/movieplayer.cpp
Expand Up @@ -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
Expand Down

0 comments on commit d39f93a

Please sign in to comment.