mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
ratelimit: fix log levels of log suppression messages
When logging a suppression message do so on the same log level as the
suppressed messages.
Cherry picked by Colin Guthrie from ec5a785712
with a couple of additional changes due to extra limiting in master
that was not present in stable-queue.
This commit is contained in:
parent
a509f10f95
commit
1250b5d735
13 changed files with 19 additions and 18 deletions
|
|
@ -2989,7 +2989,7 @@ pa_bool_t pa_sink_volume_change_apply(pa_sink *s, pa_usec_t *usec_to_next) {
|
|||
if (s->thread_info.volume_changes) {
|
||||
if (usec_to_next)
|
||||
*usec_to_next = s->thread_info.volume_changes->at - now;
|
||||
if (pa_log_ratelimit())
|
||||
if (pa_log_ratelimit(PA_LOG_DEBUG))
|
||||
pa_log_debug("Next volume change in %lld usec", s->thread_info.volume_changes->at - now);
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue