mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-18 08:56:40 -05:00
add support for volume manipulation
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@125 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
c17545108b
commit
efc3491f1f
7 changed files with 71 additions and 7 deletions
|
|
@ -175,13 +175,14 @@ int pa_pdispatch_run(struct pa_pdispatch *pd, struct pa_packet*packet, void *use
|
|||
if (r)
|
||||
run_action(pd, r, command, ts);
|
||||
|
||||
} else if (pd->command_table && command < pd->n_commands) {
|
||||
} else if (pd->command_table && (command < pd->n_commands) && pd->command_table[command].proc) {
|
||||
const struct pa_pdispatch_command *c = pd->command_table+command;
|
||||
|
||||
if (c->proc)
|
||||
c->proc(pd, command, tag, ts, userdata);
|
||||
} else
|
||||
c->proc(pd, command, tag, ts, userdata);
|
||||
} else {
|
||||
fprintf(stderr, "Recieved unsupported command %u\n", command);
|
||||
goto finish;
|
||||
}
|
||||
|
||||
ret = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue