mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 20:20:06 +00:00
Merge pull request #223 from aware70/fix-audio-codec-setup
Fix warning about missing default codecs on first run
This commit is contained in:
commit
9dfbac6617
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