mirror of
https://github.com/mpv-player/mpv
synced 2025-02-17 21:27:08 +00:00
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;
|
state->delay = p->delay / (double)p->par.rate;
|
||||||
|
|
||||||
/* report unexpected EOF / underrun */
|
/* report unexpected EOF / underrun */
|
||||||
if (state->queued_samples && state->queued_samples &&
|
if ((state->queued_samples && state->queued_samples &&
|
||||||
state->queued_samples < state->free_samples &&
|
(state->queued_samples < state->free_samples) &&
|
||||||
p->playing || sio_eof(p->hdl))
|
p->playing) || sio_eof(p->hdl))
|
||||||
{
|
{
|
||||||
MP_VERBOSE(ao, "get_state: EOF/underrun detected.\n");
|
MP_VERBOSE(ao, "get_state: EOF/underrun detected.\n");
|
||||||
MP_VERBOSE(ao, "get_state: free: %d, queued: %d, delay: %lf\n", \
|
MP_VERBOSE(ao, "get_state: free: %d, queued: %d, delay: %lf\n", \
|
||||||
|
Loading…
Reference in New Issue
Block a user