From 7ac4b7dfe75e3cd822c5ac2c89cff117394cad19 Mon Sep 17 00:00:00 2001 From: LaserEyess Date: Sun, 6 Mar 2022 12:46:52 -0500 Subject: ao_sndio: fix parentheses warning No change in logic, but wrap the LT operator and the && in parentheses to silence the compiler warning. --- audio/out/ao_sndio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'audio') diff --git a/audio/out/ao_sndio.c b/audio/out/ao_sndio.c index 6dc1d5ca9e..76ba836e00 100644 --- a/audio/out/ao_sndio.c +++ b/audio/out/ao_sndio.c @@ -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", \ -- cgit v1.2.3