diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-06-06 16:42:14 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-06-06 16:42:14 +0000 |
commit | 4e53282469de4fea4b8daaec67298bd3394f34bd (patch) | |
tree | ba8465c48ea1c75983992ba4b265efd1666d9843 /src/tag.c | |
parent | 926258605a56c015d1421ca5aaf818a8de343afc (diff) | |
download | mpd-4e53282469de4fea4b8daaec67298bd3394f34bd.tar.gz mpd-4e53282469de4fea4b8daaec67298bd3394f34bd.tar.xz mpd-4e53282469de4fea4b8daaec67298bd3394f34bd.zip |
todo update
git-svn-id: https://svn.musicpd.org/mpd/trunk@1352 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/tag.c')
-rw-r--r-- | src/tag.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -43,6 +43,7 @@ void printMpdTag(FILE * fp, MpdTag * tag) { if(tag->album) myfprintf(fp,"Album: %s\n",tag->album); if(tag->track) myfprintf(fp,"Track: %s\n",tag->track); if(tag->title) myfprintf(fp,"Title: %s\n",tag->title); + if(tag->name) myfprintf(fp,"Name: %s\n",tag->name); if(tag->time>=0) myfprintf(fp,"Time: %i\n",tag->time); } @@ -62,6 +63,7 @@ void validateUtf8Tag(MpdTag * tag) { fixUtf8(tag->album); fixUtf8(tag->track); fixUtf8(tag->title); + fixUtf8(tag->name); } #ifdef HAVE_ID3TAG @@ -158,6 +160,7 @@ MpdTag * newMpdTag() { ret->artist = NULL; ret->title = NULL; ret->track = NULL; + ret->name = NULL; ret->time = -1; return ret; } @@ -166,6 +169,7 @@ void clearMpdTag(MpdTag * tag) { if(tag->artist) free(tag->artist); if(tag->album) free(tag->album); if(tag->title) free(tag->title); + if(tag->name) free(tag->title); if(tag->track) free(tag->track); } @@ -183,6 +187,7 @@ MpdTag * mpdTagDup(MpdTag * tag) { if(tag->album) ret->album = strdup(tag->album); if(tag->title) ret->title = strdup(tag->title); if(tag->track) ret->track = strdup(tag->track); + if(tag->name) ret->name = strdup(tag->name); ret->time = tag->time; } @@ -208,6 +213,7 @@ int mpdTagsAreEqual(MpdTag * tag1, MpdTag * tag2) { if(!mpdTagStringsAreEqual(tag1->album, tag2->album)) return 0; if(!mpdTagStringsAreEqual(tag1->track, tag2->track)) return 0; if(!mpdTagStringsAreEqual(tag1->title, tag2->title)) return 0; + if(!mpdTagStringsAreEqual(tag1->name, tag2->name)) return 0; return 1; } |