AVDictionaryEntry *tag = NULL;
while ((tag = av_dict_get(metainfo, "", tag, AV_DICT_IGNORE_SUFFIX))) {
if (tag->key != NULL) {
- if (!strcasecmp(tag->key, "title")) {
+ if (!g_ascii_strcasecmp(tag->key, "title")) {
if (formatContext->title) free(formatContext->title);
formatContext->title = mmfile_strdup(tag->value);
- } else if (!strcasecmp(tag->key, "artist")) {
+ } else if (!g_ascii_strcasecmp(tag->key, "artist")) {
if (formatContext->artist) free(formatContext->artist);
formatContext->artist = mmfile_strdup(tag->value);
- } else if (!strcasecmp(tag->key, "composer")) {
+ } else if (!g_ascii_strcasecmp(tag->key, "composer")) {
if (formatContext->composer) free(formatContext->composer);
formatContext->composer = mmfile_strdup(tag->value);
- } else if (!strcasecmp(tag->key, "album")) {
+ } else if (!g_ascii_strcasecmp(tag->key, "album")) {
if (formatContext->album) free(formatContext->album);
formatContext->album = mmfile_strdup(tag->value);
- } else if (!strcasecmp(tag->key, "album_artist")) {
+ } else if (!g_ascii_strcasecmp(tag->key, "album_artist")) {
if (formatContext->album_artist) free(formatContext->album_artist);
formatContext->album_artist = mmfile_strdup(tag->value);
- } else if (!strcasecmp(tag->key, "copyright")) {
+ } else if (!g_ascii_strcasecmp(tag->key, "copyright")) {
if (formatContext->copyright) free(formatContext->copyright);
formatContext->copyright = mmfile_strdup(tag->value);
- } else if (!strcasecmp(tag->key, "comment")) {
+ } else if (!g_ascii_strcasecmp(tag->key, "comment")) {
if (formatContext->comment) free(formatContext->comment);
formatContext->comment = mmfile_strdup(tag->value);
- } else if (!strcasecmp(tag->key, "description")) {
+ } else if (!g_ascii_strcasecmp(tag->key, "description")) {
if (formatContext->description) free(formatContext->description);
formatContext->description = mmfile_strdup(tag->value);
- } else if (!strcasecmp(tag->key, "genre")) {
+ } else if (!g_ascii_strcasecmp(tag->key, "genre")) {
if (formatContext->genre) free(formatContext->genre);
formatContext->genre = mmfile_strdup(tag->value);
- } else if (!strcasecmp(tag->key, "date")) {
+ } else if (!g_ascii_strcasecmp(tag->key, "date")) {
if (formatContext->year) free(formatContext->year);
formatContext->year = mmfile_strdup(tag->value);
- } else if (!strcasecmp(tag->key, "creation_time")) {
+ } else if (!g_ascii_strcasecmp(tag->key, "creation_time")) {
if (formatContext->recDate) free(formatContext->recDate);
formatContext->recDate = mmfile_strdup(tag->value);
- } else if ((!strcasecmp(tag->key, "track")) || (!strcasecmp(tag->key, "tracknumber"))) {
+ } else if ((!g_ascii_strcasecmp(tag->key, "track")) || (!g_ascii_strcasecmp(tag->key, "tracknumber"))) {
if (formatContext->tagTrackNum) free(formatContext->tagTrackNum);
formatContext->tagTrackNum = mmfile_strdup(tag->value);
- } else if (!strcasecmp(tag->key, "lyrics")) {
+ } else if (!g_ascii_strcasecmp(tag->key, "lyrics")) {
if (formatContext->unsyncLyrics) free(formatContext->unsyncLyrics);
formatContext->unsyncLyrics = mmfile_strdup(tag->value);
- } else if (!strcasecmp(tag->key, "rotate")) { /*can be "90", "180", "270" */
+ } else if (!g_ascii_strcasecmp(tag->key, "rotate")) { /*can be "90", "180", "270" */
if (formatContext->rotate) free(formatContext->rotate);
formatContext->rotate = mmfile_strdup(tag->value);
- } else if (!strcasecmp(tag->key, "spherical-video")) {
+ } else if (!g_ascii_strcasecmp(tag->key, "spherical-video")) {
ParseSpatialVideoMetadataFromXMLString(tag->value, formatContext);
- } else if (!strcasecmp(tag->key, "metadata_block_picture")) {
+ } else if (!g_ascii_strcasecmp(tag->key, "metadata_block_picture")) {
gsize len = 0;
guchar *meta_data = NULL;