Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
c7d099c7
Commit
c7d099c7
authored
Dec 29, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder/{ffmpeg,flac,vorbis}: added more flac/vorbis MIME types
Support deprecated MIME types such as "audio/x-ogg". Support new types such as "audio/flac".
parent
d38c0905
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
4 deletions
+24
-4
NEWS
NEWS
+2
-0
ffmpeg_plugin.c
src/decoder/ffmpeg_plugin.c
+5
-0
flac_plugin.c
src/decoder/flac_plugin.c
+8
-2
oggflac_plugin.c
src/decoder/oggflac_plugin.c
+3
-1
vorbis_plugin.c
src/decoder/vorbis_plugin.c
+6
-1
No files found.
NEWS
View file @
c7d099c7
ver 0.15.8 (2009/??/??)
* decoders:
- ffmpeg, flac, vorbis: added more flac/vorbis MIME types
ver 0.15.7 (2009/12/27)
...
...
src/decoder/ffmpeg_plugin.c
View file @
c7d099c7
...
...
@@ -467,6 +467,7 @@ static const char *const ffmpeg_mime_types[] = {
"application/ogg"
,
"application/x-ms-wmz"
,
"application/x-ms-wmd"
,
"application/x-ogg"
,
"application/x-shockwave-flash"
,
"application/x-shorten"
,
"audio/8svx"
,
...
...
@@ -481,6 +482,7 @@ static const char *const ffmpeg_mime_types[] = {
"audio/ogg"
,
"audio/qcelp"
,
"audio/vorbis"
,
"audio/vorbis+ogg"
,
"audio/x-8svx"
,
"audio/x-16sv"
,
"audio/x-aac"
,
...
...
@@ -498,6 +500,9 @@ static const char *const ffmpeg_mime_types[] = {
"audio/x-ms-wma"
,
"audio/x-ms-wax"
,
"audio/x-musepack"
,
"audio/x-ogg"
,
"audio/x-vorbis"
,
"audio/x-vorbis+ogg"
,
"audio/x-pn-realaudio"
,
"audio/x-pn-multirate-realaudio"
,
"audio/x-speex"
,
...
...
src/decoder/flac_plugin.c
View file @
c7d099c7
...
...
@@ -871,9 +871,11 @@ oggflac_decode(struct decoder *decoder, struct input_stream *input_stream)
static
const
char
*
const
oggflac_suffixes
[]
=
{
"ogg"
,
"oga"
,
NULL
};
static
const
char
*
const
oggflac_mime_types
[]
=
{
"audio/x-flac+ogg"
,
"application/ogg"
,
"application/x-ogg"
,
"audio/ogg"
,
"audio/x-flac+ogg"
,
"audio/x-ogg"
,
NULL
};
...
...
@@ -894,7 +896,11 @@ const struct decoder_plugin oggflac_decoder_plugin = {
static
const
char
*
const
flac_suffixes
[]
=
{
"flac"
,
NULL
};
static
const
char
*
const
flac_mime_types
[]
=
{
"audio/x-flac"
,
"application/x-flac"
,
NULL
"application/flac"
,
"application/x-flac"
,
"audio/flac"
,
"audio/x-flac"
,
NULL
};
const
struct
decoder_plugin
flac_decoder_plugin
=
{
...
...
src/decoder/oggflac_plugin.c
View file @
c7d099c7
...
...
@@ -357,9 +357,11 @@ fail:
static
const
char
*
const
oggflac_suffixes
[]
=
{
"ogg"
,
"oga"
,
NULL
};
static
const
char
*
const
oggflac_mime_types
[]
=
{
"audio/x-flac+ogg"
,
"application/ogg"
,
"application/x-ogg"
,
"audio/ogg"
,
"audio/x-ogg"
,
"audio/x-flac+ogg"
,
NULL
};
...
...
src/decoder/vorbis_plugin.c
View file @
c7d099c7
...
...
@@ -405,8 +405,13 @@ static const char *const vorbis_suffixes[] = {
static
const
char
*
const
vorbis_mime_types
[]
=
{
"application/ogg"
,
"audio/x-vorbis+ogg"
,
"application/x-ogg"
,
"audio/ogg"
,
"audio/vorbis"
,
"audio/vorbis+ogg"
,
"audio/x-ogg"
,
"audio/x-vorbis"
,
"audio/x-vorbis+ogg"
,
NULL
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment