From 715560edb9e369fe5e55567d3725e853b11e3e91 Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Thu, 20 Jan 2011 17:06:50 +0000 Subject: GOB: Don't temper with the break key for live videos svn-id: r55355 --- engines/gob/videoplayer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engines') diff --git a/engines/gob/videoplayer.cpp b/engines/gob/videoplayer.cpp index 2c779b512d..6151bafa35 100644 --- a/engines/gob/videoplayer.cpp +++ b/engines/gob/videoplayer.cpp @@ -231,9 +231,6 @@ bool VideoPlayer::play(int slot, Properties &properties) { bool primary = slot == 0; - // NOTE: For testing (and comfort?) purposes, we enable aborting of all videos) - properties.breakKey = kShortKeyEscape; - if (properties.startFrame < 0) properties.startFrame = video->decoder->getCurFrame() + 1; if (properties.lastFrame < 0) @@ -266,6 +263,9 @@ bool VideoPlayer::play(int slot, Properties &properties) { return true; } + // NOTE: For testing (and comfort?) purposes, we enable aborting of all videos) + properties.breakKey = kShortKeyEscape; + while ((properties.startFrame != properties.lastFrame) && (properties.startFrame < (int32)(video->decoder->getFrameCount() - 1))) { -- cgit v1.2.3