diff options
author | Lennart Poettering <lennart@poettering.net> | 2008-02-13 22:13:44 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2008-02-13 22:13:44 +0000 |
commit | 86b9ef8c961bed9d3a65f044741bb423c26d8005 (patch) | |
tree | 4f588c2d88c235374ba5e3766f7e3350394f2acd /src/modules/module-combine.c | |
parent | a3e820fca7e264037adf525a8af8894190f25ec7 (diff) | |
download | pulseaudio-86b9ef8c961bed9d3a65f044741bb423c26d8005.tar.gz |
deal with a possibly failing pa_channel_map_init_auto() correctly
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2105 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/modules/module-combine.c')
-rw-r--r-- | src/modules/module-combine.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/module-combine.c b/src/modules/module-combine.c index dd81653c0..996cd4f6e 100644 --- a/src/modules/module-combine.c +++ b/src/modules/module-combine.c @@ -988,8 +988,10 @@ int pa__init(pa_module*m) { if (master_sink && ss.channels == master_sink->sample_spec.channels) map = master_sink->channel_map; - else + else { + pa_assert_se(pa_channel_map_init_auto(&map, ss.channels, PA_CHANNEL_MAP_AUX)); pa_channel_map_init_auto(&map, ss.channels, PA_CHANNEL_MAP_DEFAULT); + } if ((pa_modargs_get_channel_map(ma, NULL, &map) < 0)) { pa_log("Invalid channel map."); |