summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-05-11 20:00:43 +0200
committerLennart Poettering <lennart@poettering.net>2009-05-11 20:00:43 +0200
commit35b7ce56edcc0a0a0c228959c490d4654fab213e (patch)
treeec123de3ba7b7c47f7a319ecba56b2f575549075
parentdc5dce50ea9290817d5c74ba6f0a4ec8d985fa31 (diff)
upnp: use new rygel @HOSTNAME@ wildcard for server name
-rw-r--r--src/modules/module-rygel-media-server.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/modules/module-rygel-media-server.c b/src/modules/module-rygel-media-server.c
index 63ac8bdc..b0c06ed0 100644
--- a/src/modules/module-rygel-media-server.c
+++ b/src/modules/module-rygel-media-server.c
@@ -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);