mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
raop: Add address to RAOP device description
Some time one device announces multiple addresses (e.g. IPv4 one and IPv6 one). Or some user may own multiple RAOP devices with the same model name. This patch adds device port to device description so that users can distinguish appropriate RAOP sink by its address.
This commit is contained in:
parent
751d88717e
commit
3e53f47c8d
1 changed files with 9 additions and 6 deletions
|
|
@ -241,19 +241,22 @@ static void resolver_cb(
|
|||
avahi_free(device);
|
||||
pa_xfree(dname);
|
||||
|
||||
avahi_address_snprint(at, sizeof(at), a);
|
||||
if (nicename) {
|
||||
args = pa_sprintf_malloc("server=[%s]:%u "
|
||||
"sink_name=%s "
|
||||
"sink_properties='device.description=\"%s\"'",
|
||||
avahi_address_snprint(at, sizeof(at), a), port,
|
||||
"sink_properties='device.description=\"%s (%s:%u)\"'",
|
||||
at, port,
|
||||
vname,
|
||||
nicename);
|
||||
nicename, at, port);
|
||||
pa_xfree(nicename);
|
||||
} else {
|
||||
args = pa_sprintf_malloc("server=[%s]:%u "
|
||||
"sink_name=%s",
|
||||
avahi_address_snprint(at, sizeof(at), a), port,
|
||||
vname);
|
||||
"sink_name=%s"
|
||||
"sink_properties='device.description=\"%s:%u\"'",
|
||||
at, port,
|
||||
vname,
|
||||
at, port);
|
||||
}
|
||||
|
||||
if (tp != NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue