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.
This commit is contained in:
parent
e3f4c7b91c
commit
5923cfcde3
1
NEWS
1
NEWS
|
@ -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
|
||||||
|
|
|
@ -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 = "application/x-ogg";
|
httpd->content_type = "audio/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
|
||||||
|
|
Loading…
Reference in New Issue