diff options
| author | Einar Johan Trøan Sømåen | 2013-04-17 16:40:38 +0200 | 
|---|---|---|
| committer | Einar Johan Trøan Sømåen | 2013-04-17 16:40:38 +0200 | 
| commit | 5be672a8f4d398c996db6847af4ddd50e10aeed9 (patch) | |
| tree | 205697039ac9e124ec7ad44920e4e4d2e18511d3 | |
| parent | 23b8b66fcb7340e0a166d145fe35cedd7f457bb5 (diff) | |
| download | scummvm-rg350-5be672a8f4d398c996db6847af4ddd50e10aeed9.tar.gz scummvm-rg350-5be672a8f4d398c996db6847af4ddd50e10aeed9.tar.bz2 scummvm-rg350-5be672a8f4d398c996db6847af4ddd50e10aeed9.zip  | |
WINTERMUTE: Add sanity check to VideoTheoraPlayer
| -rw-r--r-- | engines/wintermute/video/video_theora_player.cpp | 2 | 
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;  | 
