mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
raop: Properly deal with the name coming from the device.
We need to properly quote our proplist arguments passed to the module.
This commit is contained in:
parent
3542112888
commit
27343ed79a
1 changed files with 5 additions and 3 deletions
|
|
@ -156,7 +156,9 @@ static void resolver_cb(
|
||||||
++nicename;
|
++nicename;
|
||||||
if (strlen(nicename) > 0) {
|
if (strlen(nicename) > 0) {
|
||||||
pa_log_debug("Found RAOP: %s", nicename);
|
pa_log_debug("Found RAOP: %s", nicename);
|
||||||
}
|
nicename = pa_escape(nicename, "\"'");
|
||||||
|
} else
|
||||||
|
nicename = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (l = txt; l; l = l->next) {
|
for (l = txt; l; l = l->next) {
|
||||||
|
|
@ -189,11 +191,11 @@ static void resolver_cb(
|
||||||
if (nicename) {
|
if (nicename) {
|
||||||
args = pa_sprintf_malloc("server=[%s]:%u "
|
args = pa_sprintf_malloc("server=[%s]:%u "
|
||||||
"sink_name=%s "
|
"sink_name=%s "
|
||||||
"sink_properties=device.description=\"%s\"",
|
"sink_properties='device.description=\"%s\"'",
|
||||||
avahi_address_snprint(at, sizeof(at), a), port,
|
avahi_address_snprint(at, sizeof(at), a), port,
|
||||||
vname,
|
vname,
|
||||||
nicename);
|
nicename);
|
||||||
|
pa_xfree(nicename);
|
||||||
} else {
|
} else {
|
||||||
args = pa_sprintf_malloc("server=[%s]:%u "
|
args = pa_sprintf_malloc("server=[%s]:%u "
|
||||||
"sink_name=%s",
|
"sink_name=%s",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue