mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-03 16:58:26 +00:00
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
This commit is contained in:
parent
755558de04
commit
cbbafc962d
@ -183,7 +183,7 @@ void Inter_v6::o6_playVmdOrMusic() {
|
||||
_vm->_vidPlayer->play(slot, props);
|
||||
|
||||
if (close && !props.noBlock) {
|
||||
if ((props.flags & VideoPlayer::kFlagNoVideo) && (!props.canceled))
|
||||
if (props.hasSound && !props.canceled)
|
||||
_vm->_util->longDelay(500);
|
||||
|
||||
_vm->_vidPlayer->closeVideo(slot);
|
||||
|
@ -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());
|
||||
|
||||
|
@ -96,6 +96,7 @@ public:
|
||||
|
||||
bool waitEndFrame; ///< Wait for the frame's time to run out?
|
||||
|
||||
bool hasSound; ///< Does the video have sound?
|
||||
bool canceled; ///< Was the video canceled?
|
||||
|
||||
Properties();
|
||||
|
Loading…
x
Reference in New Issue
Block a user