diff options
author | Einar Johan Trøan Sømåen | 2012-06-08 00:21:04 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-06-08 00:21:04 +0200 |
commit | 088a6b7b45b08f3257329e3da99fda699ba3aedc (patch) | |
tree | d6650736458b8ae7cad4f5a7bc72304d886338b5 | |
parent | 1c18f0efdc2e0f7062dfcf38925131a0050526a0 (diff) | |
download | scummvm-rg350-088a6b7b45b08f3257329e3da99fda699ba3aedc.tar.gz scummvm-rg350-088a6b7b45b08f3257329e3da99fda699ba3aedc.tar.bz2 scummvm-rg350-088a6b7b45b08f3257329e3da99fda699ba3aedc.zip |
WINTERMUTE: Avoid compilation errors if Theora isn't included.
-rw-r--r-- | engines/wintermute/video/VidTheoraPlayer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/wintermute/video/VidTheoraPlayer.cpp b/engines/wintermute/video/VidTheoraPlayer.cpp index f6733c3fde..3380e8c4a4 100644 --- a/engines/wintermute/video/VidTheoraPlayer.cpp +++ b/engines/wintermute/video/VidTheoraPlayer.cpp @@ -116,7 +116,11 @@ 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) _theoraDecoder = new TheoraDecoder(); +#else + return E_FAIL; +#endif _theoraDecoder->loadStream(_file); if (!_theoraDecoder->isVideoLoaded()) |