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:
7f8ccf9
)
additional validity check
author
Lennart Poettering
<lennart@poettering.net>
Thu, 19 Feb 2009 02:58:52 +0000
(
03:58
+0100)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 19 Feb 2009 02:58:52 +0000
(
03:58
+0100)
src/pulsecore/sink.c
patch
|
blob
|
history
diff --git
a/src/pulsecore/sink.c
b/src/pulsecore/sink.c
index
4f39d67
..
7441e97
100644
(file)
--- 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;