diff options
author | Sven Hesse | 2010-08-08 01:00:53 +0000 |
---|---|---|
committer | Sven Hesse | 2010-08-08 01:00:53 +0000 |
commit | b2aba5970e09aa5c862f1c0eb4ae9ab8565a5849 (patch) | |
tree | 2fd6846ce30c1a62401095d1b36f824a754b28e9 /graphics/video | |
parent | b796c39645276958d1e5dcd63ac13d5dde0ab7e8 (diff) | |
download | scummvm-rg350-b2aba5970e09aa5c862f1c0eb4ae9ab8565a5849.tar.gz scummvm-rg350-b2aba5970e09aa5c862f1c0eb4ae9ab8565a5849.tar.bz2 scummvm-rg350-b2aba5970e09aa5c862f1c0eb4ae9ab8565a5849.zip |
VIDEO: Fix VMD seeking
svn-id: r51906
Diffstat (limited to 'graphics/video')
-rw-r--r-- | graphics/video/coktel_decoder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/video/coktel_decoder.cpp b/graphics/video/coktel_decoder.cpp index c70da85deb..019ed77019 100644 --- a/graphics/video/coktel_decoder.cpp +++ b/graphics/video/coktel_decoder.cpp @@ -1409,13 +1409,13 @@ bool VMDDecoder::seek(int32 frame, int whence, bool restart) { return true; // Restart sound - if (_hasSound && (frame == 0) && (_soundStage == kSoundNone) && !_audioStream) { + if (_hasSound && (frame == -1) && (_soundStage == kSoundNone) && !_audioStream) { _soundStage = kSoundLoaded; _audioStream = Audio::makeQueuingAudioStream(_soundFreq, _soundStereo != 0); } // Seek - _stream->seek(_frames[frame].offset); + _stream->seek(_frames[frame + 1].offset); _curFrame = frame; return true; |