aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/inter_v6.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/gob/inter_v6.cpp')
-rw-r--r--engines/gob/inter_v6.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/gob/inter_v6.cpp b/engines/gob/inter_v6.cpp
index 8e74ed42f1..a9262d7c37 100644
--- a/engines/gob/inter_v6.cpp
+++ b/engines/gob/inter_v6.cpp
@@ -175,10 +175,8 @@ void Inter_v6::o6_playVmdOrMusic() {
_vm->_vidPlayer->evaluateFlags(props);
bool primary = true;
- if (props.noBlock && (props.flags & VideoPlayer::kFlagNoVideo)) {
- _vm->_vidPlayer->closeLiveSound();
+ if (props.noBlock && (props.flags & VideoPlayer::kFlagNoVideo))
primary = false;
- }
int slot = 0;
if ((fileName[0] != 0) && ((slot = _vm->_vidPlayer->openVideo(primary, fileName, props)) < 0)) {
@@ -186,6 +184,9 @@ void Inter_v6::o6_playVmdOrMusic() {
return;
}
+ if (props.hasSound)
+ _vm->_vidPlayer->closeLiveSound();
+
if (props.startFrame >= 0)
_vm->_vidPlayer->play(slot, props);