summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/sound-file.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-06-18 23:44:26 +0200
committerLennart Poettering <lennart@poettering.net>2008-06-18 23:44:26 +0200
commitc2fa11e179eb65b09eb1a7629f01d97fe44273aa (patch)
treef87068c0791bb11c51f95e8ab66a876e81a72c47 /src/pulsecore/sound-file.c
parent132e73b2efbda60919db355d6baa3d9687103e0f (diff)
make user of pa_channel_map_init_extend() wherever it makes sense
Diffstat (limited to 'src/pulsecore/sound-file.c')
-rw-r--r--src/pulsecore/sound-file.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/pulsecore/sound-file.c b/src/pulsecore/sound-file.c
index 57c17760..3183ede6 100644
--- a/src/pulsecore/sound-file.c
+++ b/src/pulsecore/sound-file.c
@@ -117,10 +117,7 @@ int pa_sound_file_load(
}
if (map)
- if (!pa_channel_map_init_auto(map, ss->channels, PA_CHANNEL_MAP_DEFAULT)) {
- pa_log("Unsupported channel map in file %s", fname);
- goto finish;
- }
+ pa_channel_map_init_extend(map, ss->channels, PA_CHANNEL_MAP_DEFAULT);
if ((l = pa_frame_size(ss) * sfinfo.frames) > PA_SCACHE_ENTRY_SIZE_MAX) {
pa_log("File too large");