mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
make user of pa_channel_map_init_extend() wherever it makes sense
This commit is contained in:
parent
132e73b2ef
commit
c2fa11e179
6 changed files with 9 additions and 36 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue