From dd8b90953255db7529d6efa597c5996ac10d8849 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 26 Jun 2008 00:31:39 +0200 Subject: fix up if the smoother shall be resumed 'before' it was actually paused --- src/pulsecore/time-smoother.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pulsecore/time-smoother.c') diff --git a/src/pulsecore/time-smoother.c b/src/pulsecore/time-smoother.c index 013edfc6..40220ad9 100644 --- a/src/pulsecore/time-smoother.c +++ b/src/pulsecore/time-smoother.c @@ -421,7 +421,8 @@ void pa_smoother_resume(pa_smoother *s, pa_usec_t x) { if (!s->paused) 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); */ @@ -458,5 +459,4 @@ void pa_smoother_reset(pa_smoother *s) { s->n_history = 0; s->abc_valid = FALSE; - } -- cgit