Browse Source

libpulseaudio: fix typos in sles sink module

android-5
Tom Yan 6 years ago
parent
commit
4f832ecc4a
  1. 4
      packages/libpulseaudio/module-sles-sink.c

4
packages/libpulseaudio/module-sles-sink.c

@ -227,8 +227,8 @@ static int state_func(pa_sink *s, pa_sink_state_t state, pa_suspend_cause_t susp
if ((PA_SINK_IS_OPENED(s->state) && state == PA_SINK_SUSPENDED) ||
(PA_SINK_IS_LINKED(s->state) && state == PA_SINK_UNLINKED))
(*u->bqPlayerPlay)->SetPlayState(u->bqPlayerPlay, SL_PLAYSTATE_STOPPED);
else if ((s->state == PA_SINK_SUSPENDED || state == PA_SINK_INIT) &&
PA_SINK_IS_LINKED(state))
else if ((s->state == PA_SINK_SUSPENDED || s->state == PA_SINK_INIT) &&
PA_SINK_IS_OPENED(state))
(*u->bqPlayerPlay)->SetPlayState(u->bqPlayerPlay, SL_PLAYSTATE_PLAYING);
return 0;
}

Loading…
Cancel
Save