aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-06-22 11:04:55 +0200
committerEinar Johan Trøan Sømåen2012-06-22 11:04:55 +0200
commit590cf7b5b133d5afd36daec7fd15c3d9f64df538 (patch)
treec45caf008724f45704ccd335c9a3994c46309604
parent9ce1685bf51a1f4f02e3a9760fc84c53ebc328c9 (diff)
downloadscummvm-rg350-590cf7b5b133d5afd36daec7fd15c3d9f64df538.tar.gz
scummvm-rg350-590cf7b5b133d5afd36daec7fd15c3d9f64df538.tar.bz2
scummvm-rg350-590cf7b5b133d5afd36daec7fd15c3d9f64df538.zip
WINTERMUTE: Reinitialize Theora-videos after load.
-rw-r--r--engines/wintermute/video/VidTheoraPlayer.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/wintermute/video/VidTheoraPlayer.cpp b/engines/wintermute/video/VidTheoraPlayer.cpp
index aeba5608b3..8398578c2b 100644
--- a/engines/wintermute/video/VidTheoraPlayer.cpp
+++ b/engines/wintermute/video/VidTheoraPlayer.cpp
@@ -130,7 +130,8 @@ void CVidTheoraPlayer::cleanup() {
//////////////////////////////////////////////////////////////////////////
HRESULT CVidTheoraPlayer::initialize(const Common::String &filename, const Common::String &subtitleFile) {
cleanup();
-
+
+ _filename = filename;
_file = Game->_fileManager->OpenFile(filename, true, false);
if (!_file) return E_FAIL;
@@ -818,6 +819,10 @@ HRESULT CVidTheoraPlayer::Persist(CBPersistMgr *PersistMgr) {
PersistMgr->Transfer(TMEMBER(_looping));
PersistMgr->Transfer(TMEMBER(_volume));
+ if (!PersistMgr->_saving && (_savedState != THEORA_STATE_NONE)) {
+ initializeSimple();
+ }
+
return S_OK;
}