diff --git a/Engine/media/video/theora_player.cpp b/Engine/media/video/theora_player.cpp index 4af0c0eba96..f3fb5c7b390 100644 --- a/Engine/media/video/theora_player.cpp +++ b/Engine/media/video/theora_player.cpp @@ -60,6 +60,10 @@ HError TheoraPlayer::OpenImpl(std::unique_ptr data_stream, return err; _name = name; + if ((_apegStream->flags & APEG_HAS_VIDEO) == 0) + flags &= ~kVideo_EnableVideo; + if ((_apegStream->flags & APEG_HAS_AUDIO) == 0) + flags &= ~kVideo_EnableAudio; _dataStream = std::move(data_stream); return HError::None(); }