aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/videoplayer.cpp
diff options
context:
space:
mode:
authorSven Hesse2010-08-08 01:03:21 +0000
committerSven Hesse2010-08-08 01:03:21 +0000
commitcebc1aca818eb3912feaee12716e78d6d8210b48 (patch)
treed1fa43604567f10ff47a233d63fab18fba4b4e33 /engines/gob/videoplayer.cpp
parent5dc322454de75e25d5db8b8f284131a166d558e7 (diff)
downloadscummvm-rg350-cebc1aca818eb3912feaee12716e78d6d8210b48.tar.gz
scummvm-rg350-cebc1aca818eb3912feaee12716e78d6d8210b48.tar.bz2
scummvm-rg350-cebc1aca818eb3912feaee12716e78d6d8210b48.zip
GOB: Fix playing of slot videos
The actual frame content is still not there, though :P svn-id: r51911
Diffstat (limited to 'engines/gob/videoplayer.cpp')
-rw-r--r--engines/gob/videoplayer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/gob/videoplayer.cpp b/engines/gob/videoplayer.cpp
index 970d8dc9dd..db82c9b965 100644
--- a/engines/gob/videoplayer.cpp
+++ b/engines/gob/videoplayer.cpp
@@ -230,7 +230,9 @@ bool VideoPlayer::play(int slot, Properties &properties) {
properties.canceled = false;
- while (properties.startFrame != properties.lastFrame) {
+ while ((properties.startFrame != properties.lastFrame) &&
+ (properties.startFrame < (int32)(video->decoder->getFrameCount() - 1))) {
+
playFrame(slot, properties);
if (properties.canceled)
break;