Skip to content

Commit

Permalink
Merge pull request #10921 from Holzhaus/flac-1.4.0-fix
Browse files Browse the repository at this point in the history
fix(soundsourceflac): Fix `-Wswitch` when building with FLAC >= 1.4.0
  • Loading branch information
daschuer authored Sep 29, 2022
2 parents c12f6ff + 017bdd2 commit 9b79576
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/sources/soundsourceflac.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,11 @@ void SoundSourceFLAC::flacError(FLAC__StreamDecoderErrorStatus status) {
case FLAC__STREAM_DECODER_ERROR_STATUS_UNPARSEABLE_STREAM:
error = "STREAM_DECODER_ERROR_STATUS_UNPARSEABLE_STREAM";
break;
#if FLAC_API_VERSION_CURRENT >= 12
case FLAC__STREAM_DECODER_ERROR_STATUS_BAD_METADATA:
error = "STREAM_DECODER_ERROR_STATUS_BAD_METADATA";
break;
#endif
}
kLogger.warning()
<< "FLAC decoding error" << error
Expand Down

0 comments on commit 9b79576

Please sign in to comment.