GOB: Don't temper with the break key for live videos

svn-id: r55355
This commit is contained in:
Sven Hesse 2011-01-20 17:06:50 +00:00
parent adf8820aee
commit 715560edb9

View File

@ -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))) {