libpulseaudio: fix typos in sles sink module
This commit is contained in:
parent
88af57a51b
commit
434411846a
@ -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…
Reference in New Issue
Block a user