additional validity check
authorLennart Poettering <lennart@poettering.net>
Thu, 19 Feb 2009 02:59:04 +0000 (03:59 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 19 Feb 2009 02:59:04 +0000 (03:59 +0100)
src/pulsecore/source.c

index 0009d85c9f249d0decdcd939e841622f197c3ae0..c0d6d9ea3318589186e4c31d36502d4c6434e2ee 100644 (file)
@@ -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;