mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04:00
treat a channel map only then as compatible with a sample spec if it is valid
This commit is contained in:
parent
891989896d
commit
d56f3751fe
1 changed files with 6 additions and 0 deletions
|
|
@ -569,5 +569,11 @@ int pa_channel_map_compatible(const pa_channel_map *map, const pa_sample_spec *s
|
|||
pa_assert(map);
|
||||
pa_assert(ss);
|
||||
|
||||
if (!pa_channel_map_valid(map))
|
||||
return 0;
|
||||
|
||||
if (!pa_sample_spec_valid(ss))
|
||||
return 0;
|
||||
|
||||
return map->channels == ss->channels;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue