mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 20:30: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 =
|
auto oggCodecs =
|
||||||
oggFormat.supportedAudioCodecs(QMediaFormat::ConversionMode::Decode);
|
oggFormat.supportedAudioCodecs(QMediaFormat::ConversionMode::Decode);
|
||||||
|
|
||||||
// Setup is required if codec errors are not ignored, and the default codecs
|
// Setup is required if codec errors are not ignored, and no Ogg support
|
||||||
// are not supported
|
// is found.
|
||||||
return (!ignoreCodecErrors &&
|
return (!ignoreCodecErrors && oggCodecs.empty());
|
||||||
!oggCodecs.contains(QMediaFormat::AudioCodec::Vorbis));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace setup
|
} // namespace setup
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue