From 25c852f1a5ea8c50cca5d6b6c4debba56ad0988d Mon Sep 17 00:00:00 2001 From: ottogin Date: Mon, 14 Mar 2016 02:35:41 +0300 Subject: SWORD25: Fix frozen/flickering title menu movie Fixes bug #6978: Unload old movie before loading a new one --- engines/sword25/fmv/movieplayer.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'engines/sword25') 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); -- cgit v1.2.3