fix sink iunput and source output stuff

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@127 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Lennart Poettering 2004-08-16 20:16:37 +00:00
parent 369a908db7
commit 126fedea31
2 changed files with 2 additions and 2 deletions

View file

@ -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) {

View file

@ -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;