projects
/
profile
/
ivi
/
pulseaudio-panda.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35faedb
)
mime: drop additional whitespace from mime types
author
Lennart Poettering
<lennart@poettering.net>
Mon, 11 May 2009 17:56:13 +0000
(19:56 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Mon, 11 May 2009 17:56:13 +0000
(19:56 +0200)
src/pulsecore/mime-type.c
patch
|
blob
|
history
diff --git
a/src/pulsecore/mime-type.c
b/src/pulsecore/mime-type.c
index
55b8ffd
..
b9fe944
100644
(file)
--- a/
src/pulsecore/mime-type.c
+++ b/
src/pulsecore/mime-type.c
@@
-154,7
+154,10
@@
char *pa_sample_spec_to_mime_type(const pa_sample_spec *ss, const pa_channel_map
case PA_SAMPLE_S16BE:
case PA_SAMPLE_S24BE:
case PA_SAMPLE_U8:
- return pa_sprintf_malloc("audio/%s; rate=%u; channels=%u",
+ /* 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",
ss->format == PA_SAMPLE_S16BE ? "L16" :
(ss->format == PA_SAMPLE_S24BE ? "L24" : "L8"),
ss->rate, ss->channels);