mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
WINTERMUTE: Make Theora-playback fail properly when THEORA isn't compiled in.
This commit is contained in:
1 parent
ef2eb685dd
commit
63efd76192
2 files changed
+6
-2
No files matched your search
@@ -1476,7 +1476,11 @@ HRESULT CBGame::ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisS
|
||||
}
|
||||
else Stack->PushBool(false);
|
||||
}
|
||||
else Stack->PushBool(false);
|
||||
else {
|
||||
Stack->PushBool(false);
|
||||
delete _theoraPlayer;
|
||||
_theoraPlayer = NULL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -116,7 +116,7 @@ HRESULT CVidTheoraPlayer::initialize(const Common::String &filename, const Commo
|
||||
if (!_file) return E_FAIL;
|
||||
|
||||
//if (Filename != _filename) CBUtils::SetString(&_filename, Filename);
|
||||
#if defined (USE_THEORA)
|
||||
#if defined (USE_THEORADEC)
|
||||
_theoraDecoder = new TheoraDecoder();
|
||||
#else
|
||||
return E_FAIL;
|
||||
|
||||
Reference in new issue
Block a user