aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-10-03 16:22:03 +0200
committerMax Kellermann <max@duempel.org>2010-10-03 16:22:03 +0200
commit5923cfcde357ca57547884819f508bff7a949620 (patch)
treecc50c33df708a535284425f071d3c0c85a2484d0
parente3f4c7b91cb25cc7d233b64de0e55ef2ab0d179b (diff)
downloadmpd-5923cfcde357ca57547884819f508bff7a949620.tar.gz
mpd-5923cfcde357ca57547884819f508bff7a949620.tar.xz
mpd-5923cfcde357ca57547884819f508bff7a949620.zip
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.
-rw-r--r--NEWS1
-rw-r--r--src/output/httpd_output_plugin.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index ff6716a0e..a0babe955 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,7 @@ ver 0.15.13 (2010/??/??)
* output_thread: fix race condition after CANCEL command
* output:
- httpd: fix random data in stream title
+ - httpd: MIME type audio/ogg for Ogg Vorbis
* input:
- rewind: update MIME not only once
- rewind: enable for MMS
diff --git a/src/output/httpd_output_plugin.c b/src/output/httpd_output_plugin.c
index 9fdf46456..026e8d9d8 100644
--- a/src/output/httpd_output_plugin.c
+++ b/src/output/httpd_output_plugin.c
@@ -70,7 +70,7 @@ httpd_output_init(G_GNUC_UNUSED const struct audio_format *audio_format,
}
if (strcmp(encoder_name, "vorbis") == 0)
- httpd->content_type = "application/x-ogg";
+ httpd->content_type = "audio/ogg";
else if (strcmp(encoder_name, "lame") == 0)
httpd->content_type = "audio/mpeg";
else