aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25
diff options
context:
space:
mode:
authorottogin2016-03-14 02:35:41 +0300
committerottogin2016-03-14 03:29:03 +0300
commit25c852f1a5ea8c50cca5d6b6c4debba56ad0988d (patch)
treea7444cf19f57fb4faa8dcacdc8d69b304ebaa214 /engines/sword25
parentea81d2141750575c077c6145a8307c589dd3fd29 (diff)
downloadscummvm-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/sword25')
-rw-r--r--engines/sword25/fmv/movieplayer.cpp2
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);