summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorLaserEyess <lasereyess@users.noreply.github.com>2022-03-06 12:46:52 -0500
committersfan5 <sfan5@live.de>2022-03-11 16:43:31 +0100
commit7ac4b7dfe75e3cd822c5ac2c89cff117394cad19 (patch)
treea28948751ca6435c29547d06cacf7810c9d47efd /audio
parent199a7ebcd9178bbc619039f0a42e63124018b24a (diff)
downloadmpv-7ac4b7dfe75e3cd822c5ac2c89cff117394cad19.tar.bz2
mpv-7ac4b7dfe75e3cd822c5ac2c89cff117394cad19.tar.xz
ao_sndio: fix parentheses warning
No change in logic, but wrap the LT operator and the && in parentheses to silence the compiler warning.
Diffstat (limited to 'audio')
-rw-r--r--audio/out/ao_sndio.c6
1 files changed, 3 insertions, 3 deletions
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", \