change pa_modargs_get_channel_map() to take an extra argument for specifying the name of the modargs attribute to parse

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1813 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Lennart Poettering 2007-09-12 20:12:13 +00:00
parent d9c4c9509d
commit 4137865815
3 changed files with 7 additions and 7 deletions

View file

@ -233,7 +233,7 @@ static void thread_func(void *userdata) {
pa_rtclock_get(&u->timestamp);
/* This is only run when were are in NULL mode, to make sure that
/* This is only run when we are in NULL mode, to make sure that
* playback doesn't stop. In all other cases we hook our stuff
* into the master sink. */
@ -1029,7 +1029,7 @@ int pa__init(pa_module*m) {
else
pa_channel_map_init_auto(&map, ss.channels, PA_CHANNEL_MAP_DEFAULT);
if ((pa_modargs_get_channel_map(ma, &map) < 0)) {
if ((pa_modargs_get_channel_map(ma, NULL, &map) < 0)) {
pa_log("Invalid channel map.");
goto fail;
}