summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/time-smoother.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-06-26 00:31:39 +0200
committerLennart Poettering <lennart@poettering.net>2008-06-26 00:31:39 +0200
commitdd8b90953255db7529d6efa597c5996ac10d8849 (patch)
treed5b4024a4a04c1d8942660ebafe6fa5a267adcc3 /src/pulsecore/time-smoother.c
parentb4302cacf94b0e720befc120ae9fe71be77a8973 (diff)
fix up if the smoother shall be resumed 'before' it was actually paused
Diffstat (limited to 'src/pulsecore/time-smoother.c')
-rw-r--r--src/pulsecore/time-smoother.c4
1 files changed, 2 insertions, 2 deletions
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;
-
}