* Add initial support for video cover art.

* Try to handle id3 tags that use non-utf8 and iso8859 charsets.
This commit is contained in:
Justin Maggard
2009-05-27 23:11:18 +00:00
parent feb2fd1e87
commit c011c4a087
3 changed files with 56 additions and 28 deletions

View File

@ -72,10 +72,11 @@ struct {
char *lang;
char *cpnames[N_LANG_ALT];
} iconv_map[] = {
{ "JA", { "ISO-8859-1", "CP932", "ISO8859-1", "CP950", "CP936", 0 } },
{ "ZH_CN", { "ISO-8859-1", "CP936", "CP950", "CP932", 0 } },
{ "ZH_TW", { "ISO-8859-1", "CP950", "CP936", "CP932", 0 } },
{ 0, { 0 } }
{ "ja_JP", { "CP932", "CP950", "CP936", "ISO-8859-1", 0 } },
{ "zh_CN", { "CP936", "CP950", "CP932", "ISO-8859-1", 0 } },
{ "zh_TW", { "CP950", "CP936", "CP932", "ISO-8859-1", 0 } },
{ "ko_KR", { "CP949", "ISO-8859-1", 0 } },
{ 0, { 0 } }
};
static int lang_index = -1;
@ -91,7 +92,7 @@ _lang2cp(char *lang)
if(!strcasecmp(iconv_map[cp].lang, lang))
return cp;
}
return -1;
return -2;
}
static unsigned char*