projects
/
platform
/
upstream
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
928920c
)
additional validity check
author
Lennart Poettering
<lennart@poettering.net>
Thu, 19 Feb 2009 02:59:04 +0000
(
03:59
+0100)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 19 Feb 2009 02:59:04 +0000
(
03:59
+0100)
src/pulsecore/source.c
patch
|
blob
|
history
diff --git
a/src/pulsecore/source.c
b/src/pulsecore/source.c
index 0009d85c9f249d0decdcd939e841622f197c3ae0..c0d6d9ea3318589186e4c31d36502d4c6434e2ee 100644
(file)
--- 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;