SWORD25: Fix frozen/flickering title menu movie

Fixes bug #6978: Unload old movie before loading a new one
This commit is contained in:
ottogin 2016-03-14 02:35:41 +03:00
parent ea81d21417
commit 25c852f1a5

View File

@ -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);