diff --git a/audio/out/ao_sndio.c b/audio/out/ao_sndio.c index fce7139b5f..b7f4ffb18b 100644 --- a/audio/out/ao_sndio.c +++ b/audio/out/ao_sndio.c @@ -292,7 +292,7 @@ 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 && + if ((state->queued_samples && (state->queued_samples < state->free_samples) && p->playing) || sio_eof(p->hdl)) {