flac/ogg/oggflac: keep old mime-types in addition to the new ones
We'll be dealing with legacy server configurations for a long time to come. git-svn-id: https://svn.musicpd.org/mpd/trunk@5253 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
@@ -478,7 +478,10 @@ static unsigned int oggflac_try_decode(InputStream * inStream)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static char *oggflac_suffixes[] = { "ogg", NULL };
|
static char *oggflac_suffixes[] = { "ogg", NULL };
|
||||||
static char *oggflac_mime_types[] = { "audio/x-flac+ogg", NULL };
|
static char *oggflac_mime_types[] = { "audio/x-flac+ogg",
|
||||||
|
"application/ogg",
|
||||||
|
"application/x-ogg",
|
||||||
|
NULL };
|
||||||
|
|
||||||
static int flac_plugin_init(void)
|
static int flac_plugin_init(void)
|
||||||
{
|
{
|
||||||
@@ -503,7 +506,9 @@ static int flac_plugin_init(void)
|
|||||||
#endif /* FLAC_API_VERSION_CURRENT >= 7 */
|
#endif /* FLAC_API_VERSION_CURRENT >= 7 */
|
||||||
|
|
||||||
static char *flacSuffixes[] = { "flac", NULL };
|
static char *flacSuffixes[] = { "flac", NULL };
|
||||||
static char *flac_mime_types[] = { "audio/x-flac", NULL };
|
static char *flac_mime_types[] = { "audio/x-flac",
|
||||||
|
"application/x-flac",
|
||||||
|
NULL };
|
||||||
|
|
||||||
InputPlugin flacPlugin = {
|
InputPlugin flacPlugin = {
|
||||||
"flac",
|
"flac",
|
||||||
|
@@ -398,7 +398,10 @@ fail:
|
|||||||
}
|
}
|
||||||
|
|
||||||
static char *oggflac_Suffixes[] = { "ogg", NULL };
|
static char *oggflac_Suffixes[] = { "ogg", NULL };
|
||||||
static char *oggflac_mime_types[] = { "audio/x-flac+ogg", NULL };
|
static char *oggflac_mime_types[] = { "audio/x-flac+ogg",
|
||||||
|
"application/ogg",
|
||||||
|
"application/x-ogg",
|
||||||
|
NULL };
|
||||||
|
|
||||||
InputPlugin oggflacPlugin = {
|
InputPlugin oggflacPlugin = {
|
||||||
"oggflac",
|
"oggflac",
|
||||||
|
@@ -409,7 +409,10 @@ static unsigned int oggvorbis_try_decode(InputStream * inStream)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static char *oggvorbis_Suffixes[] = { "ogg", NULL };
|
static char *oggvorbis_Suffixes[] = { "ogg", NULL };
|
||||||
static char *oggvorbis_MimeTypes[] = { "application/ogg", "application/x-ogg",NULL };
|
static char *oggvorbis_MimeTypes[] = { "application/ogg",
|
||||||
|
"audio/x-vorbis+ogg",
|
||||||
|
"application/x-ogg",
|
||||||
|
NULL };
|
||||||
|
|
||||||
InputPlugin oggvorbisPlugin = {
|
InputPlugin oggvorbisPlugin = {
|
||||||
"oggvorbis",
|
"oggvorbis",
|
||||||
|
Reference in New Issue
Block a user