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/pulsecore/sink-input.c | |
parent | a3e820fca7e264037adf525a8af8894190f25ec7 (diff) |
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/pulsecore/sink-input.c')
-rw-r--r-- | src/pulsecore/sink-input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulsecore/sink-input.c b/src/pulsecore/sink-input.c index ec0914ec..07ddb83a 100644 --- a/src/pulsecore/sink-input.c +++ b/src/pulsecore/sink-input.c @@ -120,7 +120,7 @@ pa_sink_input* pa_sink_input_new( if (data->sink->channel_map.channels == data->sample_spec.channels) data->channel_map = data->sink->channel_map; else - pa_channel_map_init_auto(&data->channel_map, data->sample_spec.channels, PA_CHANNEL_MAP_DEFAULT); + pa_return_null_if_fail(pa_channel_map_init_auto(&data->channel_map, data->sample_spec.channels, PA_CHANNEL_MAP_DEFAULT)); } pa_return_null_if_fail(pa_channel_map_valid(&data->channel_map)); |