mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-25 05:34:27 +00:00
SWORD25: Fix frozen/flickering title menu movie
Fixes bug #6978: Unload old movie before loading a new one
This commit is contained in:
parent
ea81d21417
commit
25c852f1a5
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user