aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/wintermute/video/VidTheoraPlayer.cpp4
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())