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
5923cfcd
Commit
5923cfcd
authored
Oct 03, 2010
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/httpd: MIME type audio/ogg for Ogg Vorbis
RFC 5334 10.3 defines the MIME type "audio/ogg". We could use "application/ogg" as well, but we know for sure that we only emit audio data.
parent
e3f4c7b9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
NEWS
NEWS
+1
-0
httpd_output_plugin.c
src/output/httpd_output_plugin.c
+1
-1
No files found.
NEWS
View file @
5923cfcd
...
@@ -2,6 +2,7 @@ ver 0.15.13 (2010/??/??)
...
@@ -2,6 +2,7 @@ ver 0.15.13 (2010/??/??)
* output_thread: fix race condition after CANCEL command
* output_thread: fix race condition after CANCEL command
* output:
* output:
- httpd: fix random data in stream title
- httpd: fix random data in stream title
- httpd: MIME type audio/ogg for Ogg Vorbis
* input:
* input:
- rewind: update MIME not only once
- rewind: update MIME not only once
- rewind: enable for MMS
- rewind: enable for MMS
...
...
src/output/httpd_output_plugin.c
View file @
5923cfcd
...
@@ -70,7 +70,7 @@ httpd_output_init(G_GNUC_UNUSED const struct audio_format *audio_format,
...
@@ -70,7 +70,7 @@ httpd_output_init(G_GNUC_UNUSED const struct audio_format *audio_format,
}
}
if
(
strcmp
(
encoder_name
,
"vorbis"
)
==
0
)
if
(
strcmp
(
encoder_name
,
"vorbis"
)
==
0
)
httpd
->
content_type
=
"a
pplication/x-
ogg"
;
httpd
->
content_type
=
"a
udio/
ogg"
;
else
if
(
strcmp
(
encoder_name
,
"lame"
)
==
0
)
else
if
(
strcmp
(
encoder_name
,
"lame"
)
==
0
)
httpd
->
content_type
=
"audio/mpeg"
;
httpd
->
content_type
=
"audio/mpeg"
;
else
else
...
...
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