ao_sndio: fix parentheses warning

No change in logic, but wrap the LT operator and the && in parentheses
to silence the compiler warning.
This commit is contained in:
LaserEyess 2022-03-06 12:46:52 -05:00 committed by sfan5
parent 199a7ebcd9
commit 7ac4b7dfe7
1 changed files with 3 additions and 3 deletions

View File

@ -289,9 +289,9 @@ static void get_state(struct ao *ao, struct mp_pcm_state *state)
state->delay = p->delay / (double)p->par.rate;
/* report unexpected EOF / underrun */
if (state->queued_samples && state->queued_samples &&
state->queued_samples < state->free_samples &&
p->playing || sio_eof(p->hdl))
if ((state->queued_samples && state->queued_samples &&
(state->queued_samples < state->free_samples) &&
p->playing) || sio_eof(p->hdl))
{
MP_VERBOSE(ao, "get_state: EOF/underrun detected.\n");
MP_VERBOSE(ao, "get_state: free: %d, queued: %d, delay: %lf\n", \