mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
Fix up according to Coding Style
Only whitespace changes in here
This commit is contained in:
parent
5715b2af30
commit
ecf09f2cd6
60 changed files with 297 additions and 418 deletions
|
|
@ -2732,22 +2732,22 @@ void pa_sink_set_latency_range(pa_sink *s, pa_usec_t min_latency, pa_usec_t max_
|
|||
|
||||
/* Called from main thread */
|
||||
void pa_sink_get_latency_range(pa_sink *s, pa_usec_t *min_latency, pa_usec_t *max_latency) {
|
||||
pa_sink_assert_ref(s);
|
||||
pa_assert_ctl_context();
|
||||
pa_assert(min_latency);
|
||||
pa_assert(max_latency);
|
||||
pa_sink_assert_ref(s);
|
||||
pa_assert_ctl_context();
|
||||
pa_assert(min_latency);
|
||||
pa_assert(max_latency);
|
||||
|
||||
if (PA_SINK_IS_LINKED(s->state)) {
|
||||
pa_usec_t r[2] = { 0, 0 };
|
||||
if (PA_SINK_IS_LINKED(s->state)) {
|
||||
pa_usec_t r[2] = { 0, 0 };
|
||||
|
||||
pa_assert_se(pa_asyncmsgq_send(s->asyncmsgq, PA_MSGOBJECT(s), PA_SINK_MESSAGE_GET_LATENCY_RANGE, r, 0, NULL) == 0);
|
||||
pa_assert_se(pa_asyncmsgq_send(s->asyncmsgq, PA_MSGOBJECT(s), PA_SINK_MESSAGE_GET_LATENCY_RANGE, r, 0, NULL) == 0);
|
||||
|
||||
*min_latency = r[0];
|
||||
*max_latency = r[1];
|
||||
} else {
|
||||
*min_latency = s->thread_info.min_latency;
|
||||
*max_latency = s->thread_info.max_latency;
|
||||
}
|
||||
*min_latency = r[0];
|
||||
*max_latency = r[1];
|
||||
} else {
|
||||
*min_latency = s->thread_info.min_latency;
|
||||
*max_latency = s->thread_info.max_latency;
|
||||
}
|
||||
}
|
||||
|
||||
/* Called from IO thread */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue