* Add support for other operating systems (kFreeBSD, FreeBSD, and OSX for now).
* Switch to autoconf from genconfig.sh.
This commit is contained in:
@ -232,8 +232,7 @@ _get_mp3tags(char *file, struct song_metadata *psong)
|
||||
if((utf8_text) && (strncasecmp((char*)utf8_text, "iTun", 4) != 0))
|
||||
{
|
||||
// read comment
|
||||
if(utf8_text)
|
||||
free(utf8_text);
|
||||
free(utf8_text);
|
||||
|
||||
native_text = id3_field_getfullstring(&pid3frame->fields[3]);
|
||||
if(native_text)
|
||||
@ -241,16 +240,14 @@ _get_mp3tags(char *file, struct song_metadata *psong)
|
||||
utf8_text = (unsigned char*)id3_ucs4_utf8duplicate(native_text);
|
||||
if(utf8_text)
|
||||
{
|
||||
if (psong->comment)
|
||||
free(psong->comment);
|
||||
free(psong->comment);
|
||||
psong->comment = (char*)utf8_text;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if(utf8_text)
|
||||
free(utf8_text);
|
||||
free(utf8_text);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user