mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
fix up if the smoother shall be resumed 'before' it was actually paused
This commit is contained in:
parent
b4302cacf9
commit
dd8b909532
1 changed files with 2 additions and 2 deletions
|
|
@ -421,7 +421,8 @@ void pa_smoother_resume(pa_smoother *s, pa_usec_t x) {
|
||||||
if (!s->paused)
|
if (!s->paused)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
pa_assert(x >= s->pause_time);
|
if (x < s->pause_time)
|
||||||
|
x = s->pause_time;
|
||||||
|
|
||||||
/* pa_log_debug("resume(%llu)", (unsigned long long) x); */
|
/* pa_log_debug("resume(%llu)", (unsigned long long) x); */
|
||||||
|
|
||||||
|
|
@ -458,5 +459,4 @@ void pa_smoother_reset(pa_smoother *s) {
|
||||||
|
|
||||||
s->n_history = 0;
|
s->n_history = 0;
|
||||||
s->abc_valid = FALSE;
|
s->abc_valid = FALSE;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue