if a volume or channel map is invalid show so when printing it

This commit is contained in:
Lennart Poettering 2008-10-03 15:16:26 +02:00
parent 33b186e74d
commit 8a50105fe0
3 changed files with 16 additions and 1 deletions

View file

@ -131,7 +131,7 @@ char *pa_sample_spec_snprint(char *s, size_t l, const pa_sample_spec *spec) {
pa_init_i18n();
if (!pa_sample_spec_valid(spec))
pa_snprintf(s, l, _("Invalid"));
pa_snprintf(s, l, _("(invalid)"));
else
pa_snprintf(s, l, "%s %uch %uHz", pa_sample_format_to_string(spec->format), spec->channels, spec->rate);