diff options
author | Lennart Poettering <lennart@poettering.net> | 2008-10-08 00:15:18 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2008-10-08 00:15:18 +0200 |
commit | 2dfc2654832e5124f263bc7ee2718ff6913e6d46 (patch) | |
tree | 1d7fcb4696fe9cc8c6e971b1fb489b94980c5e6b /src/pulsecore/source-output.c | |
parent | 5925d44013e2d559d1755176af0e26f69fc46458 (diff) | |
parent | 37b8c45e2b4d996b328a4fc74f491498abbc9348 (diff) |
Merge branch 'flatvol'
Diffstat (limited to 'src/pulsecore/source-output.c')
-rw-r--r-- | src/pulsecore/source-output.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pulsecore/source-output.c b/src/pulsecore/source-output.c index d76f6e4e..7adc7572 100644 --- a/src/pulsecore/source-output.c +++ b/src/pulsecore/source-output.c @@ -124,14 +124,14 @@ pa_source_output* pa_source_output_new( pa_return_null_if_fail(pa_sample_spec_valid(&data->sample_spec)); if (!data->channel_map_is_set) { - if (data->source->channel_map.channels == data->sample_spec.channels) + if (pa_channel_map_compatible(&data->source->channel_map, &data->sample_spec)) data->channel_map = data->source->channel_map; else - pa_return_null_if_fail(pa_channel_map_init_auto(&data->channel_map, data->sample_spec.channels, PA_CHANNEL_MAP_DEFAULT)); + pa_channel_map_init_extend(&data->channel_map, data->sample_spec.channels, PA_CHANNEL_MAP_DEFAULT); } pa_return_null_if_fail(pa_channel_map_valid(&data->channel_map)); - pa_return_null_if_fail(data->channel_map.channels == data->sample_spec.channels); + pa_return_null_if_fail(pa_channel_map_compatible(&data->channel_map, &data->sample_spec)); if (flags & PA_SOURCE_OUTPUT_FIX_FORMAT) data->sample_spec.format = data->source->sample_spec.format; |