* 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);

View File

@ -195,7 +195,7 @@ is_audio(const char * file)
ends_with(file, ".fla") || ends_with(file, ".flc") ||
ends_with(file, ".m4a") || ends_with(file, ".aac") ||
ends_with(file, ".mp4") || ends_with(file, ".m4p") ||
ends_with(file, ".wav"));
ends_with(file, ".wav") || ends_with(file, ".ogg"));
}
int