diff options
author | Sven Hesse | 2010-08-08 00:40:00 +0000 |
---|---|---|
committer | Sven Hesse | 2010-08-08 00:40:00 +0000 |
commit | bb746b5b619b439669c878f218b9be91faff549a (patch) | |
tree | 56398b9fdcaafa8c520449e7dedfd98a7fe330b8 /engines/gob | |
parent | aa113e5ab3b6e96ff6d2b56839b7ac08ec0617cc (diff) | |
download | scummvm-rg350-bb746b5b619b439669c878f218b9be91faff549a.tar.gz scummvm-rg350-bb746b5b619b439669c878f218b9be91faff549a.tar.bz2 scummvm-rg350-bb746b5b619b439669c878f218b9be91faff549a.zip |
GOB: Properly utilize FixedRateVideoDecoder::getTimeToNextFrame()
svn-id: r51861
Diffstat (limited to 'engines/gob')
-rw-r--r-- | engines/gob/videoplayer.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/engines/gob/videoplayer.cpp b/engines/gob/videoplayer.cpp index 587f640f28..a32d56512b 100644 --- a/engines/gob/videoplayer.cpp +++ b/engines/gob/videoplayer.cpp @@ -159,7 +159,7 @@ int VideoPlayer::openVideo(bool primary, const Common::String &file, Properties if (primary) _needBlit = (properties.flags & kFlagUseBackSurfaceContent) && (properties.sprite == Draw::kFrontSurface); - // video->decoder->setFrameRate(_vm->_util->getFrameRate()); + video->decoder->setFrameRate(_vm->_util->getFrameRate()); WRITE_VAR(7, video->decoder->getFrameCount()); @@ -225,9 +225,8 @@ bool VideoPlayer::play(int slot, Properties &properties) { properties.fade = false; } - _vm->_util->longDelay(100); - /*if (!_noCursorSwitch) - video.waitEndFrame();*/ + if (!_noCursorSwitch) + _vm->_util->delay(video->decoder->getTimeToNextFrame()); } evalBgShading(*video); |