aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/video/video_theora_player.cpp
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2013-04-17 16:40:38 +0200
committerEinar Johan Trøan Sømåen2013-04-17 16:40:38 +0200
commit5be672a8f4d398c996db6847af4ddd50e10aeed9 (patch)
tree205697039ac9e124ec7ad44920e4e4d2e18511d3 /engines/wintermute/video/video_theora_player.cpp
parent23b8b66fcb7340e0a166d145fe35cedd7f457bb5 (diff)
downloadscummvm-rg350-5be672a8f4d398c996db6847af4ddd50e10aeed9.tar.gz
scummvm-rg350-5be672a8f4d398c996db6847af4ddd50e10aeed9.tar.bz2
scummvm-rg350-5be672a8f4d398c996db6847af4ddd50e10aeed9.zip
WINTERMUTE: Add sanity check to VideoTheoraPlayer
Diffstat (limited to 'engines/wintermute/video/video_theora_player.cpp')
-rw-r--r--engines/wintermute/video/video_theora_player.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/wintermute/video/video_theora_player.cpp b/engines/wintermute/video/video_theora_player.cpp
index 1f6842c416..5bd50867d2 100644
--- a/engines/wintermute/video/video_theora_player.cpp
+++ b/engines/wintermute/video/video_theora_player.cpp
@@ -317,7 +317,7 @@ bool VideoTheoraPlayer::update() {
}
}
// Skip the busy-loop?
- if ((!_texture || !_videoFrameReady) && !_theoraDecoder->endOfVideo()) {
+ if ((!_texture || !_videoFrameReady) && _theoraDecoder && !_theoraDecoder->endOfVideo()) {
// end playback
if (!_looping) {
_state = THEORA_STATE_FINISHED;