From 5f5396bb15c6b939ac6a71efa36950817f9e18bf Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 19 Feb 2009 03:59:04 +0100 Subject: [PATCH] additional validity check --- src/pulsecore/source.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pulsecore/source.c b/src/pulsecore/source.c index 0009d85..c0d6d9e 100644 --- a/src/pulsecore/source.c +++ b/src/pulsecore/source.c @@ -1120,6 +1120,9 @@ void pa_source_update_latency_range(pa_source *s, pa_usec_t min_latency, pa_usec pa_source_assert_ref(s); + pa_assert(!min_latency || !max_latency || + min_latency <= max_latency); + s->thread_info.min_latency = min_latency; s->thread_info.max_latency = max_latency; -- 2.7.4