projects
/
profile
/
ivi
/
pulseaudio-panda.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e053fa0
)
additional validity checks
author
Lennart Poettering
<lennart@poettering.net>
Tue, 7 Oct 2008 20:47:01 +0000
(22:47 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 7 Oct 2008 20:47:01 +0000
(22:47 +0200)
src/pulsecore/sink.c
patch
|
blob
|
history
diff --git
a/src/pulsecore/sink.c
b/src/pulsecore/sink.c
index
d20a49d
..
7e92049
100644
(file)
--- a/
src/pulsecore/sink.c
+++ b/
src/pulsecore/sink.c
@@
-848,6
+848,8
@@
void pa_sink_set_volume(pa_sink *s, const pa_cvolume *volume) {
pa_sink_assert_ref(s);
pa_assert(PA_SINK_IS_LINKED(s->state));
pa_assert(volume);
+ pa_assert(pa_cvolume_valid(volume));
+ pa_assert(pa_cvolume_compatible(volume, &s->sample_spec));
data.sink = s;
data.volume = *volume;