mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 23:10:05 +00:00
Check for any Ogg support in audio setup, not just Vorbis
This commit is contained in:
parent
088bd6aacc
commit
8536bc5c62
1 changed files with 3 additions and 4 deletions
|
|
@ -164,10 +164,9 @@ bool AudioCodecPage::IsRequired()
|
|||
auto oggCodecs =
|
||||
oggFormat.supportedAudioCodecs(QMediaFormat::ConversionMode::Decode);
|
||||
|
||||
// Setup is required if codec errors are not ignored, and the default codecs
|
||||
// are not supported
|
||||
return (!ignoreCodecErrors &&
|
||||
!oggCodecs.contains(QMediaFormat::AudioCodec::Vorbis));
|
||||
// Setup is required if codec errors are not ignored, and no Ogg support
|
||||
// is found.
|
||||
return (!ignoreCodecErrors && oggCodecs.empty());
|
||||
}
|
||||
|
||||
} // namespace setup
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue