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:
46f73fb
)
after calling PA_CORE_HOOK_SINK_SET_VOLUME hook, check again whether the volume changed
author
Lennart Poettering
<lennart@poettering.net>
Tue, 7 Oct 2008 20:47:32 +0000
(22:47 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 7 Oct 2008 20:47:32 +0000
(22:47 +0200)
src/pulsecore/sink.c
patch
|
blob
|
history
diff --git
a/src/pulsecore/sink.c
b/src/pulsecore/sink.c
index
7e92049
..
d8d1f79
100644
(file)
--- a/
src/pulsecore/sink.c
+++ b/
src/pulsecore/sink.c
@@
-856,8
+856,12
@@
void pa_sink_set_volume(pa_sink *s, const pa_cvolume *volume) {
changed = !pa_cvolume_equal(&data.volume, &s->volume);
- if (changed && pa_hook_fire(&s->core->hooks[PA_CORE_HOOK_SINK_SET_VOLUME], &data) < 0)
- return;
+ if (changed) {
+ if (pa_hook_fire(&s->core->hooks[PA_CORE_HOOK_SINK_SET_VOLUME], &data) < 0)
+ return;
+
+ changed = !pa_cvolume_equal(&data.volume, &s->volume);
+ }
s->volume = data.volume;