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:
Lennart Poettering 2004-08-15 13:15:51 +00:00
parent c17545108b
commit efc3491f1f
7 changed files with 71 additions and 7 deletions

View file

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