Skip to content

Commit

Permalink
Merge pull request #223 from aware70/fix-audio-codec-setup
Browse files Browse the repository at this point in the history
Fix warning about missing default codecs on first run
  • Loading branch information
dpaulat authored Jun 8, 2024
2 parents 601a2ad + 8536bc5 commit 9dfbac6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions scwx-qt/source/scwx/qt/ui/setup/audio_codec_page.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9dfbac6

Please sign in to comment.