mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
if a volume or channel map is invalid show so when printing it
This commit is contained in:
parent
33b186e74d
commit
8a50105fe0
3 changed files with 16 additions and 1 deletions
|
|
@ -466,6 +466,13 @@ char* pa_channel_map_snprint(char *s, size_t l, const pa_channel_map *map) {
|
|||
pa_assert(l > 0);
|
||||
pa_assert(map);
|
||||
|
||||
pa_init_i18n();
|
||||
|
||||
if (!pa_channel_map_valid(map)) {
|
||||
pa_snprintf(s, l, _("(invalid)"));
|
||||
return s;
|
||||
}
|
||||
|
||||
*(e = s) = 0;
|
||||
|
||||
for (channel = 0; channel < map->channels && l > 1; channel++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue