mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
combine-sink: Use PA_MAX instead of ternary operator for clarity
This commit is contained in:
parent
74abce331b
commit
bfe0e6366d
1 changed files with 1 additions and 1 deletions
|
|
@ -227,7 +227,7 @@ static void adjust_rates(struct userdata *u) {
|
|||
|
||||
avg_total_latency /= n;
|
||||
|
||||
target_latency = max_sink_latency > min_total_latency ? max_sink_latency : min_total_latency;
|
||||
target_latency = PA_MAX(max_sink_latency, min_total_latency);
|
||||
|
||||
pa_log_info("[%s] avg total latency is %0.2f msec.", u->sink->name, (double) avg_total_latency / PA_USEC_PER_MSEC);
|
||||
pa_log_info("[%s] target latency is %0.2f msec.", u->sink->name, (double) target_latency / PA_USEC_PER_MSEC);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue