Commit 7c691619 authored by Eric Wong's avatar Eric Wong

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. git-svn-id: https://svn.musicpd.org/mpd/trunk@7191 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent 7d574703
...@@ -390,7 +390,7 @@ fail: ...@@ -390,7 +390,7 @@ fail:
return ret; return ret;
} }
static const char *oggflac_Suffixes[] = { "ogg", NULL }; static const char *oggflac_Suffixes[] = { "ogg", "oga",NULL };
static const char *oggflac_mime_types[] = { "audio/x-flac+ogg", static const char *oggflac_mime_types[] = { "audio/x-flac+ogg",
"application/ogg", "application/ogg",
"application/x-ogg", "application/x-ogg",
......
...@@ -383,7 +383,7 @@ static unsigned int oggvorbis_try_decode(InputStream * inStream) ...@@ -383,7 +383,7 @@ static unsigned int oggvorbis_try_decode(InputStream * inStream)
return (ogg_stream_type_detect(inStream) == VORBIS) ? 1 : 0; return (ogg_stream_type_detect(inStream) == VORBIS) ? 1 : 0;
} }
static const char *oggvorbis_Suffixes[] = { "ogg", NULL }; static const char *oggvorbis_Suffixes[] = { "ogg","oga", NULL };
static const char *oggvorbis_MimeTypes[] = { "application/ogg", static const char *oggvorbis_MimeTypes[] = { "application/ogg",
"audio/x-vorbis+ogg", "audio/x-vorbis+ogg",
"application/x-ogg", "application/x-ogg",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment