* Add Ogg scanning support.

This commit is contained in:
Justin Maggard
2009-08-07 04:47:35 +00:00
parent aba116a445
commit 90dcf17785
2 changed files with 6 additions and 1 deletions

View File

@ -185,6 +185,11 @@ GetAudioMetadata(const char * path, char * name)
strcpy(type, "wav");
strcpy(mime, "audio/x-wav");
}
else if( ends_with(path, ".ogg") )
{
strcpy(type, "ogg");
strcpy(mime, "application/ogg");
}
else
{
DPRINTF(E_WARN, L_GENERAL, "Unhandled file extension on %s\n", path);