diff options
author | Sven Hesse | 2009-08-02 10:40:27 +0000 |
---|---|---|
committer | Sven Hesse | 2009-08-02 10:40:27 +0000 |
commit | 1471f0e3ddffeedd7ff10e44ecb252cca1ad4864 (patch) | |
tree | 79790eb0578fdb1c7ae8bd025cb3dd1318dd8625 /engines/gob | |
parent | 01886d3e5266b1cdb0f8cb0460354215358000f5 (diff) | |
download | scummvm-rg350-1471f0e3ddffeedd7ff10e44ecb252cca1ad4864.tar.gz scummvm-rg350-1471f0e3ddffeedd7ff10e44ecb252cca1ad4864.tar.bz2 scummvm-rg350-1471f0e3ddffeedd7ff10e44ecb252cca1ad4864.zip |
When ESCing videos, seek to the last frame that was meant to be played. Fixes graphical glitches (bug #2830985) and crashes (bug #2830988)
svn-id: r42995
Diffstat (limited to 'engines/gob')
-rw-r--r-- | engines/gob/videoplayer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/gob/videoplayer.cpp b/engines/gob/videoplayer.cpp index a3a9dde892..a7399caa54 100644 --- a/engines/gob/videoplayer.cpp +++ b/engines/gob/videoplayer.cpp @@ -739,6 +739,8 @@ bool VideoPlayer::doPlay(int16 frame, int16 breakKey, _vm->_inter->storeKey(_vm->_util->checkKey()); if (VAR(0) == (unsigned) breakKey) { _primaryVideo->getVideo()->disableSound(); + // Seek to the last frame. Some scripts depend on that. + _primaryVideo->getVideo()->seekFrame(endFrame, SEEK_SET, true); return true; } } |