sample: Use PA_SAMPLE_INVALID instead of numeric value

This commit is contained in:
Arun Raghavan 2011-02-24 14:46:01 +05:30
parent f4d1f2bdcf
commit 802c8b6fcc

View file

@ -242,7 +242,7 @@ pa_sample_format_t pa_parse_sample_format(const char *format) {
else if (strcasecmp(format, "s24-32re") == 0)
return PA_SAMPLE_S24_32RE;
return -1;
return PA_SAMPLE_INVALID;
}
int pa_sample_format_is_le(pa_sample_format_t f) {