summaryrefslogtreecommitdiffstats
path: root/polyp
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-08-16 20:16:37 +0000
committerLennart Poettering <lennart@poettering.net>2004-08-16 20:16:37 +0000
commit126fedea31b346c0c16ce2e3211768036675e46f (patch)
tree81cf4dd6c7a7aaf185e903e09e1e69388544286e /polyp
parent369a908db761e7f59481000a68bffb476aa6e056 (diff)
fix sink iunput and source output stuff
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@127 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp')
-rw-r--r--polyp/protocol-native.c2
-rw-r--r--polyp/sink-input.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/polyp/protocol-native.c b/polyp/protocol-native.c
index 35c78f61..1fafc984 100644
--- a/polyp/protocol-native.c
+++ b/polyp/protocol-native.c
@@ -1246,7 +1246,7 @@ static void command_set_volume(struct pa_pdispatch *pd, uint32_t command, uint32
sink = pa_namereg_get(c->protocol->core, *name ? name : NULL, PA_NAMEREG_SINK, 1);
} else {
assert(command == PA_COMMAND_SET_SINK_INPUT_VOLUME);
- si = pa_idxset_get_by_index(c->protocol->core->sinks, index);
+ si = pa_idxset_get_by_index(c->protocol->core->sink_inputs, index);
}
if (!si && !sink) {
diff --git a/polyp/sink-input.c b/polyp/sink-input.c
index cf255a07..99ff8fe6 100644
--- a/polyp/sink-input.c
+++ b/polyp/sink-input.c
@@ -170,7 +170,7 @@ void pa_sink_input_drop(struct pa_sink_input *i, size_t length) {
}
void pa_sink_input_set_volume(struct pa_sink_input *i, uint32_t volume) {
- assert(i);
+ assert(i && i->sink && i->sink->core);
if (i->volume != volume) {
i->volume = volume;