mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
mime: drop additional whitespace from mime types
This commit is contained in:
parent
35faedb6e8
commit
eb205646ae
1 changed files with 4 additions and 1 deletions
|
|
@ -154,6 +154,9 @@ char *pa_sample_spec_to_mime_type(const pa_sample_spec *ss, const pa_channel_map
|
||||||
case PA_SAMPLE_S16BE:
|
case PA_SAMPLE_S16BE:
|
||||||
case PA_SAMPLE_S24BE:
|
case PA_SAMPLE_S24BE:
|
||||||
case PA_SAMPLE_U8:
|
case PA_SAMPLE_U8:
|
||||||
|
/* Stupid UPnP implementations (PS3...) choke on spaces in
|
||||||
|
* the mime type, that's why we write only ';' here,
|
||||||
|
* instead of '; '. */
|
||||||
return pa_sprintf_malloc("audio/%s;rate=%u;channels=%u",
|
return pa_sprintf_malloc("audio/%s;rate=%u;channels=%u",
|
||||||
ss->format == PA_SAMPLE_S16BE ? "L16" :
|
ss->format == PA_SAMPLE_S16BE ? "L16" :
|
||||||
(ss->format == PA_SAMPLE_S24BE ? "L24" : "L8"),
|
(ss->format == PA_SAMPLE_S24BE ? "L24" : "L8"),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue