Skip to content

Commit

Permalink
Fix unbalanced parentheses in FAudio.c
Browse files Browse the repository at this point in the history
Commit b591694 ("Dont assert on WMA buffer and
FAUDIO_FORMAT_EXTENSIBLE type") introduced unbalanced parentheses,
which breaks builds using HAVE_WMADEC.

Given the change made in the aforementioned commit, this balances
parentheses by adding a third closing parenthesis after the reworked
conditions.

Signed-off-by: Stephen Kitt <steve@sk2.org>
  • Loading branch information
skitt authored and flibitijibibo committed Nov 1, 2021
1 parent caf9754 commit de0c1f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FAudio.c
Original file line number Diff line number Diff line change
Expand Up @@ -2455,7 +2455,7 @@ uint32_t FAudioSourceVoice_SubmitSourceBuffer(
#ifdef HAVE_WMADEC
FAudio_assert( (voice->src.wmadec != NULL && (pBufferWMA != NULL ||
(voice->src.format->wFormatTag == FAUDIO_FORMAT_XMAUDIO2 ||
voice->src.format->wFormatTag == FAUDIO_FORMAT_EXTENSIBLE)) ||
voice->src.format->wFormatTag == FAUDIO_FORMAT_EXTENSIBLE))) ||
(voice->src.wmadec == NULL && (pBufferWMA == NULL && voice->src.format->wFormatTag != FAUDIO_FORMAT_XMAUDIO2)) );
#endif /* HAVE_WMADEC */

Expand Down

0 comments on commit de0c1f8

Please sign in to comment.