aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-06-11 16:41:59 +0200
committerEinar Johan Trøan Sømåen2012-06-11 16:41:59 +0200
commit0b02dae394a6fa4828c22526a518accaacc8bd51 (patch)
tree86d315e48f6dad22b9faafc2c429cf11196c2a7b /engines
parenta522aa5f6c6ec0e87f038cda9e6e50f13df41f8e (diff)
downloadscummvm-rg350-0b02dae394a6fa4828c22526a518accaacc8bd51.tar.gz
scummvm-rg350-0b02dae394a6fa4828c22526a518accaacc8bd51.tar.bz2
scummvm-rg350-0b02dae394a6fa4828c22526a518accaacc8bd51.zip
WINTERMUTE: Let looping movies atleast stall at the end for now.
Diffstat (limited to 'engines')
-rw-r--r--engines/wintermute/video/VidTheoraPlayer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/wintermute/video/VidTheoraPlayer.cpp b/engines/wintermute/video/VidTheoraPlayer.cpp
index 048027be2c..3171e6881f 100644
--- a/engines/wintermute/video/VidTheoraPlayer.cpp
+++ b/engines/wintermute/video/VidTheoraPlayer.cpp
@@ -446,7 +446,9 @@ HRESULT CVidTheoraPlayer::update() {
int Counter = 0;
if (_theoraDecoder) {
- if (_theoraDecoder->endOfVideo()) {
+ if (_theoraDecoder->endOfVideo() && _looping) {
+ warning("Should loop movie");
+ } else if (_theoraDecoder->endOfVideo() && !_looping) {
warning("Finished movie");
_state = THEORA_STATE_FINISHED;
_playbackStarted = false;