From ac74ef1fde5859aabcffe6ec6c57100cb680d89f Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 16 Jun 2008 02:47:56 +0000 Subject: inputPlugins: add .oga suffix support for Ogg containers From : > .oga - audio/ogg > > * Ogg Audio Profile (audio in Ogg container) > * Applications supporting .oga, .ogv SHOULD support decoding > from muxed Ogg streams > * Covers Ogg FLAC, Ghost, and OggPCM > * Although they share the same MIME type, Vorbis and Speex > use different file extensions. > * SHOULD contain a Skeleton logical bitstream. > * Vorbis and Speex may use .oga, but it is not the > prefered(sic) method of distributing these files because of > backwards-compatibility issues. Thanks to Qball and Rasi for the patch. https://svn.musicpd.org/mpd/trunk r7191 git-svn-id: https://svn.musicpd.org/mpd/branches/branch-0.13.0-fixes@7380 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/inputPlugins/oggflac_plugin.c | 2 +- src/inputPlugins/oggvorbis_plugin.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/inputPlugins/oggflac_plugin.c b/src/inputPlugins/oggflac_plugin.c index 58eb0a5f7..2a49ef924 100644 --- a/src/inputPlugins/oggflac_plugin.c +++ b/src/inputPlugins/oggflac_plugin.c @@ -397,7 +397,7 @@ fail: return ret; } -static char *oggflac_Suffixes[] = { "ogg", NULL }; +static char *oggflac_Suffixes[] = { "ogg", "oga", NULL }; static char *oggflac_mime_types[] = { "audio/x-flac+ogg", "application/ogg", "application/x-ogg", diff --git a/src/inputPlugins/oggvorbis_plugin.c b/src/inputPlugins/oggvorbis_plugin.c index 4b4b87c8a..5f74b2656 100644 --- a/src/inputPlugins/oggvorbis_plugin.c +++ b/src/inputPlugins/oggvorbis_plugin.c @@ -408,7 +408,7 @@ static unsigned int oggvorbis_try_decode(InputStream * inStream) return (ogg_stream_type_detect(inStream) == VORBIS) ? 1 : 0; } -static char *oggvorbis_Suffixes[] = { "ogg", NULL }; +static char *oggvorbis_Suffixes[] = { "ogg", "oga", NULL }; static char *oggvorbis_MimeTypes[] = { "application/ogg", "audio/x-vorbis+ogg", "application/x-ogg", -- cgit v1.2.3