diff options
author | ottogin | 2016-03-14 02:35:41 +0300 |
---|---|---|
committer | ottogin | 2016-03-14 03:29:03 +0300 |
commit | 25c852f1a5ea8c50cca5d6b6c4debba56ad0988d (patch) | |
tree | a7444cf19f57fb4faa8dcacdc8d69b304ebaa214 /engines | |
parent | ea81d2141750575c077c6145a8307c589dd3fd29 (diff) | |
download | scummvm-rg350-25c852f1a5ea8c50cca5d6b6c4debba56ad0988d.tar.gz scummvm-rg350-25c852f1a5ea8c50cca5d6b6c4debba56ad0988d.tar.bz2 scummvm-rg350-25c852f1a5ea8c50cca5d6b6c4debba56ad0988d.zip |
SWORD25: Fix frozen/flickering title menu movie
Fixes bug #6978: Unload old movie before loading a new one
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sword25/fmv/movieplayer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/sword25/fmv/movieplayer.cpp b/engines/sword25/fmv/movieplayer.cpp index eb0f0390dc..62a897a332 100644 --- a/engines/sword25/fmv/movieplayer.cpp +++ b/engines/sword25/fmv/movieplayer.cpp @@ -58,6 +58,8 @@ MoviePlayer::~MoviePlayer() { } bool MoviePlayer::loadMovie(const Common::String &filename, uint z) { + if (isMovieLoaded()) + unloadMovie(); // Get the file and load it into the decoder Common::SeekableReadStream *in = Kernel::getInstance()->getPackage()->getStream(filename); _decoder.loadStream(in); |