[Scummvm-git-logs] scummvm master -> faa887b24e24615dac1c5485e301d8c4344b9e5b

aquadran noreply at scummvm.org
Sun Jul 19 21:22:46 UTC 2026


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
faa887b24e WINTERMUTE: Fixed AVI movie player


Commit: faa887b24e24615dac1c5485e301d8c4344b9e5b
    https://github.com/scummvm/scummvm/commit/faa887b24e24615dac1c5485e301d8c4344b9e5b
Author: Paweł Kołodziejski (aquadran at gmail.com)
Date: 2026-07-19T23:22:34+02:00

Commit Message:
WINTERMUTE: Fixed AVI movie player

Changed paths:
    engines/wintermute/video/video_player.cpp


diff --git a/engines/wintermute/video/video_player.cpp b/engines/wintermute/video/video_player.cpp
index 8ad28ff70c7..0891c31e4a1 100644
--- a/engines/wintermute/video/video_player.cpp
+++ b/engines/wintermute/video/video_player.cpp
@@ -147,7 +147,8 @@ bool VideoPlayer::update() {
 	if (_aviDecoder->endOfVideo()) {
 		_playbackStarted = false;
 		if (_freezeGame) {
-			_game->unfreeze();
+			stop();
+			return STATUS_OK;
 		}
 	}
 	if (!_aviDecoder->endOfVideo() && _aviDecoder->getTimeToNextFrame() == 0) {
@@ -246,13 +247,11 @@ bool VideoPlayer::play(TVideoPlayback type, int x, int y, bool freezeMusic) {
 
 //////////////////////////////////////////////////////////////////////////
 bool VideoPlayer::stop() {
-	_aviDecoder->close();
-
-	cleanup();
-
 	if (_freezeGame)
 		_game->unfreeze();
 
+	cleanup();
+
 	return STATUS_OK;
 }
 




More information about the Scummvm-git-logs mailing list