diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-06-16 02:47:56 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-06-16 02:47:56 +0000 |
commit | ac74ef1fde5859aabcffe6ec6c57100cb680d89f (patch) | |
tree | 1ed928077b4c8508d7d04ba6dc13ff3d9aa728bd | |
parent | 2e4c199274c67f729299a4b494a7614f23f4b084 (diff) | |
download | mpd-ac74ef1fde5859aabcffe6ec6c57100cb680d89f.tar.gz mpd-ac74ef1fde5859aabcffe6ec6c57100cb680d89f.tar.xz mpd-ac74ef1fde5859aabcffe6ec6c57100cb680d89f.zip |
inputPlugins: add .oga suffix support for Ogg containers
From <http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions>:
> .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
-rw-r--r-- | src/inputPlugins/oggflac_plugin.c | 2 | ||||
-rw-r--r-- | 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", |