mirror of https://github.com/mpv-player/mpv
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:
parent
199a7ebcd9
commit
7ac4b7dfe7
|
@ -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", \
|
||||
|
|
Loading…
Reference in New Issue