mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
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:
parent
369a908db7
commit
126fedea31
2 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue