summaryrefslogtreecommitdiffstats
path: root/src/pulsecore
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-02-19 03:58:52 +0100
committerLennart Poettering <lennart@poettering.net>2009-02-19 03:58:52 +0100
commit928920c8b81b20ff1a8257231904cd0f06804988 (patch)
tree2f0f2cdfbe8910e0a7d0975e24647d897213e2bb /src/pulsecore
parent7f8ccf9e7cf2d0e4042cd5fa85bc49a2982e6807 (diff)
additional validity check
Diffstat (limited to 'src/pulsecore')
-rw-r--r--src/pulsecore/sink.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pulsecore/sink.c b/src/pulsecore/sink.c
index 4f39d671..7441e971 100644
--- a/src/pulsecore/sink.c
+++ b/src/pulsecore/sink.c
@@ -1846,6 +1846,9 @@ void pa_sink_update_latency_range(pa_sink *s, pa_usec_t min_latency, pa_usec_t m
pa_sink_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;