pData->tagInfo.tracknum = hTag->pTrackNum;
pData->tagInfo.composer = hTag->pComposer;
pData->tagInfo.classification = hTag->pContentGroup;
- pData->tagInfo.rating = hTag->pRating;
pData->tagInfo.recordDate = hTag->pRecDate;
pData->tagInfo.conductor = hTag->pConductor;
pData->tagInfo.artworkMime = hTag->imageInfo.imageMIMEType;
debug_msg(RELEASE, "Author : %s\n", pInfo->pAuthor);
debug_msg(RELEASE, "Copyright : %s\n", pInfo->pCopyright);
debug_msg(RELEASE, "Comment : %s\n", pInfo->pComment);
- debug_msg(RELEASE, "Rating : %s\n", pInfo->pRating);
debug_msg(RELEASE, "RecDate : %s\n", pInfo->pRecDate);
debug_msg(RELEASE, "PartOfASet : %s\n", pInfo->pPartOfASet);
debug_msg(RELEASE, "Encoded by : %s\n", pInfo->pEncBy);
int tagLen;
char tagVersion;
- bool bTagVer2Found;
-
bool bTitleMarked;
bool bArtistMarked;
bool bAlbumMarked;
bool bSyncLyricsMarked;
bool bConductorMarked;
-
- bool bGenreUTF16;
-
} AvTagVer2AdditionalData;
int artistLen;
int authorLen;
int copyrightLen;
- int descriptionLen;
int commentLen;
int ratingLen;
int albumLen;
unsigned int bitRate;
unsigned int sampleRate;
unsigned int channels;
-/* unsigned long creationTime; */
long long duration;
/* for mp3 Info */
char *pArtist; /*Lead performer(s)/Soloist(s), */
char *pAuthor; /*Author */
char *pCopyright;
- char *pDescription;
char *pComment;
- char *pRating;
char *pAlbum; /*Album/Movie/ */
char *pAlbum_Artist;
char *pYear;
mmfile_free(pInfo->pArtist);
mmfile_free(pInfo->pAuthor);
mmfile_free(pInfo->pCopyright);
- mmfile_free(pInfo->pDescription);
mmfile_free(pInfo->pComment);
- mmfile_free(pInfo->pRating);
mmfile_free(pInfo->pAlbum);
mmfile_free(pInfo->pAlbum_Artist);
mmfile_free(pInfo->pYear);
pInfo->tagV2Info.bUnsyncLyricsMarked = false;
pInfo->tagV2Info.bSyncLyricsMarked = false;
pInfo->tagV2Info.bConductorMarked = false;
- pInfo->tagV2Info.bGenreUTF16 = false;
pInfo->imageInfo.bURLInfo = false;
pInfo->imageInfo.pImageBuf = NULL;
debug_msg(RELEASE, "Genre was not Found.\n");
}
} else if (pInfo->tagV2Info.bGenreMarked == true) {
- if (pInfo->genreLen && pInfo->tagV2Info.bGenreUTF16) {
- pInfo->pGenre[pInfo->genreLen + 1] = '\0';
- mpegAudioGenre = mmfile_malloc(sizeof(char) * (pInfo->genreLen * AV_WM_LOCALCODE_SIZE_MAX + 1));
- } else {
- debug_msg(RELEASE, "pInfo->genreLen size is Zero Or not UTF16 code! genreLen[%d] genre[%s]\n", pInfo->genreLen, pInfo->pGenre);
+ debug_msg(RELEASE, "pInfo->genreLen size is Zero Or not UTF16 code! genreLen[%d] genre[%s]\n", pInfo->genreLen, pInfo->pGenre);
- if (pInfo->pGenre) {
- pInfo->genreLen = strlen(pInfo->pGenre);
- mpegAudioGenre = mmfile_malloc(sizeof(char) * (pInfo->genreLen + 1));
- if (mpegAudioGenre != NULL) {
- SAFE_STRLCPY(mpegAudioGenre, pInfo->pGenre, pInfo->genreLen + 1);
- }
- } else {
- pInfo->genreLen = 0;
+ if (pInfo->pGenre) {
+ pInfo->genreLen = strlen(pInfo->pGenre);
+ mpegAudioGenre = mmfile_malloc(sizeof(char) * (pInfo->genreLen + 1));
+ if (mpegAudioGenre != NULL) {
+ SAFE_STRLCPY(mpegAudioGenre, pInfo->pGenre, pInfo->genreLen + 1);
}
+ } else {
+ pInfo->genreLen = 0;
}
mmfile_free(pInfo->pGenre);