aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/videoplayer.cpp
diff options
context:
space:
mode:
authorSven Hesse2011-01-22 16:29:54 +0000
committerSven Hesse2011-01-22 16:29:54 +0000
commitcbbafc962d6a35d9b8744cd6d0094dfd976dc30f (patch)
tree96018a965a0edd60697c77befea101d6b9ee0adb /engines/gob/videoplayer.cpp
parent755558de042d76751e4684fb8e56bd9463cfef89 (diff)
downloadscummvm-rg350-cbbafc962d6a35d9b8744cd6d0094dfd976dc30f.tar.gz
scummvm-rg350-cbbafc962d6a35d9b8744cd6d0094dfd976dc30f.tar.bz2
scummvm-rg350-cbbafc962d6a35d9b8744cd6d0094dfd976dc30f.zip
GOB: Extend the good-measure wait to all videos with sound
Fixes a glitch in Bambou, where the intro movie is cut off to soon. svn-id: r55432
Diffstat (limited to 'engines/gob/videoplayer.cpp')
-rw-r--r--engines/gob/videoplayer.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/gob/videoplayer.cpp b/engines/gob/videoplayer.cpp
index 0413dff245..7233b7fe95 100644
--- a/engines/gob/videoplayer.cpp
+++ b/engines/gob/videoplayer.cpp
@@ -40,7 +40,8 @@ VideoPlayer::Properties::Properties() : type(kVideoTypeTry), sprite(Draw::kFront
x(-1), y(-1), width(-1), height(-1), flags(kFlagFrontSurface), switchColorMode(false),
startFrame(-1), lastFrame(-1), endFrame(-1), forceSeek(false),
breakKey(kShortKeyEscape), palCmd(8), palStart(0), palEnd(255), palFrame(-1),
- noBlock(false), loop(false), fade(false), waitEndFrame(true), canceled(false) {
+ noBlock(false), loop(false), fade(false), waitEndFrame(true),
+ hasSound(false), canceled(false) {
}
@@ -202,6 +203,8 @@ int VideoPlayer::openVideo(bool primary, const Common::String &file, Properties
if (primary)
_needBlit = (properties.flags & kFlagUseBackSurfaceContent) && (properties.sprite == Draw::kFrontSurface);
+ properties.hasSound = video->decoder->hasSound();
+
if (!video->decoder->hasSound())
video->decoder->setFrameRate(_vm->_util->getFrameRate());