From cebc1aca818eb3912feaee12716e78d6d8210b48 Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Sun, 8 Aug 2010 01:03:21 +0000 Subject: GOB: Fix playing of slot videos The actual frame content is still not there, though :P svn-id: r51911 --- engines/gob/videoplayer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engines/gob/videoplayer.cpp') 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; -- cgit v1.2.3