This prevented to use pacat --file-format option correctly
pa_assert_se(sf_command(NULL, SFC_GET_FORMAT_MAJOR, &fi, sizeof(fi)) == 0);
if (strcasecmp(name, fi.name) == 0)
pa_assert_se(sf_command(NULL, SFC_GET_FORMAT_MAJOR, &fi, sizeof(fi)) == 0);
if (strcasecmp(name, fi.name) == 0)
}
/* Then, try to match via the full extension */
}
/* Then, try to match via the full extension */
pa_assert_se(sf_command(NULL, SFC_GET_FORMAT_MAJOR, &fi, sizeof(fi)) == 0);
if (strcasecmp(name, fi.extension) == 0)
pa_assert_se(sf_command(NULL, SFC_GET_FORMAT_MAJOR, &fi, sizeof(fi)) == 0);
if (strcasecmp(name, fi.extension) == 0)
}
/* Then, try to match via the start of the type string */
}
/* Then, try to match via the start of the type string */
pa_assert_se(sf_command(NULL, SFC_GET_FORMAT_MAJOR, &fi, sizeof(fi)) == 0);
if (strncasecmp(name, fi.extension, strlen(name)) == 0)
pa_assert_se(sf_command(NULL, SFC_GET_FORMAT_MAJOR, &fi, sizeof(fi)) == 0);
if (strncasecmp(name, fi.extension, strlen(name)) == 0)