From 3976342ec0120fb2b9817dc06cbf05e48ab521c3 Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Thu, 20 Jan 2011 12:28:46 +0000 Subject: GOB: Don't not play videos with only sound svn-id: r55349 --- engines/gob/videoplayer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engines/gob/videoplayer.cpp') diff --git a/engines/gob/videoplayer.cpp b/engines/gob/videoplayer.cpp index c89f598d10..c9dae63fa5 100644 --- a/engines/gob/videoplayer.cpp +++ b/engines/gob/videoplayer.cpp @@ -114,7 +114,8 @@ int VideoPlayer::openVideo(bool primary, const Common::String &file, Properties if (!(video->decoder = openVideo(file, properties))) return -1; - if (video->decoder->isPaletted() != !_vm->isTrueColor()) { + if (video->decoder->hasVideo() && !(properties.flags & kFlagNoVideo) && + (video->decoder->isPaletted() != !_vm->isTrueColor())) { if (!properties.switchColorMode) return -1; -- cgit v1.2.3