summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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", \