mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
upnp: use new rygel @HOSTNAME@ wildcard for server name
This commit is contained in:
parent
dc5dce50ea
commit
35b7ce56ed
1 changed files with 2 additions and 7 deletions
|
|
@ -516,13 +516,8 @@ int pa__init(pa_module *m) {
|
|||
|
||||
if ((t = pa_modargs_get_value(ma, "display_name", NULL)))
|
||||
u->display_name = pa_utf8_filter(t);
|
||||
else {
|
||||
char *h;
|
||||
|
||||
h = pa_get_host_name_malloc();
|
||||
u->display_name = pa_sprintf_malloc(_("Audio on %s"), h);
|
||||
pa_xfree(h);
|
||||
}
|
||||
else
|
||||
u->display_name = pa_xstrdup(_("Audio on @HOSTNAME@"));
|
||||
|
||||
u->source_new_slot = pa_hook_connect(&m->core->hooks[PA_CORE_HOOK_SOURCE_PUT], PA_HOOK_LATE, (pa_hook_cb_t) source_new_or_unlink_cb, u);
|
||||
u->source_unlink_slot = pa_hook_connect(&m->core->hooks[PA_CORE_HOOK_SOURCE_UNLINK], PA_HOOK_LATE, (pa_hook_cb_t) source_new_or_unlink_cb, u);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue