* Ignore Vorbis lyrics data.

This commit is contained in:
Justin Maggard 2009-04-05 07:57:11 +00:00
parent 0a8badcae0
commit abd4a24639

View File

@ -174,11 +174,18 @@ _get_utf8_text(const id3_ucs4_t* native_text)
static void static void
vc_scan(struct song_metadata *psong, const char *comment, const size_t length) vc_scan(struct song_metadata *psong, const char *comment, const size_t length)
{ {
char strbuf[2048]; char strbuf[1024];
if(length > (sizeof(strbuf) - 1)) if(length > (sizeof(strbuf) - 1))
{ {
DPRINTF(E_WARN, L_SCANNER, "Vorbis Comment too long [%s]\n", psong->path); if(!strncasecmp(strbuf, "LYRICS=", 7))
{
DPRINTF(E_DEBUG, L_SCANNER, "Ignoring embedded Vorbis lyrics [%s]\n", psong->path);
}
else
{
DPRINTF(E_WARN, L_SCANNER, "Vorbis %.*s too long [%s]\n", (index(comment, '=')-comment), comment, psong->path);
}
return; return;
} }
strncpy(strbuf, comment, length); strncpy(strbuf, comment, length);