unsigned error;
};
-#define stricmp strcasecmp
-
static struct membuffer *membuffer_create(void)
{
const unsigned initial_size = 256;
{
unsigned n;
for (n = 0; n < sizeof (ID3v1GenreList) / sizeof (ID3v1GenreList[0]); n++) {
- if (!stricmp(genrestr, ID3v1GenreList[n]))
+ if (!strcasecmp(genrestr, ID3v1GenreList[n]))
return n + 1;
}
return 0;
{
unsigned n;
for (n = 0; n < sizeof (stdmetas) / sizeof (stdmetas[0]); n++) {
- if (!stricmp(name, stdmetas[n].name))
+ if (!strcasecmp(name, stdmetas[n].name))
return stdmetas[n].atom;
}
return 0;
const char *genre_ptr = 0, *tempo_ptr = 0;
for (metaptr = 0; metaptr < data->count; metaptr++) {
struct mp4ff_tag *tag = &data->tags[metaptr];
- if (!stricmp(tag->item, "tracknumber") || !stricmp(tag->item, "track")) {
+ if (!strcasecmp(tag->item, "tracknumber") || !strcasecmp(tag->item, "track")) {
if (tracknumber_ptr == 0)
tracknumber_ptr = tag->value;
mask[metaptr] = 1;
- } else if (!stricmp(tag->item, "totaltracks")) {
+ } else if (!strcasecmp(tag->item, "totaltracks")) {
if (totaltracks_ptr == 0)
totaltracks_ptr = tag->value;
mask[metaptr] = 1;
- } else if (!stricmp(tag->item, "discnumber")
- || !stricmp(tag->item, "disc")) {
+ } else if (!strcasecmp(tag->item, "discnumber")
+ || !strcasecmp(tag->item, "disc")) {
if (discnumber_ptr == 0)
discnumber_ptr = tag->value;
mask[metaptr] = 1;
- } else if (!stricmp(tag->item, "totaldiscs")) {
+ } else if (!strcasecmp(tag->item, "totaldiscs")) {
if (totaldiscs_ptr == 0)
totaldiscs_ptr = tag->value;
mask[metaptr] = 1;
- } else if (!stricmp(tag->item, "genre")) {
+ } else if (!strcasecmp(tag->item, "genre")) {
if (genre_ptr == 0)
genre_ptr = tag->value;
mask[metaptr] = 1;
- } else if (!stricmp(tag->item, "tempo")) {
+ } else if (!strcasecmp(tag->item, "tempo")) {
if (tempo_ptr == 0)
tempo_ptr = tag->value;
mask[metaptr] = 1;
uint32_t i;
for (i = 0; i < f->tags.count; i++) {
- if (!stricmp(f->tags.tags[i].item, item)) {
+ if (!strcasecmp(f->tags.tags[i].item, item)) {
*value = para_strdup(f->tags.tags[i].value);
return 1;
}