]> code.delx.au - pulseaudio/commitdiff
tunnel: Fix automatic names when source/sink_name argument is missing.
authorColin Guthrie <cguthrie@mandriva.org>
Sun, 16 Jan 2011 14:34:11 +0000 (14:34 +0000)
committerColin Guthrie <cguthrie@mandriva.org>
Sun, 16 Jan 2011 14:34:11 +0000 (14:34 +0000)
Spotted by palmerdabbelt via #894

src/modules/module-tunnel.c

index ce5f8d5583734fa6d31ca933ea8e34a2aef17cda..176c2c00d859635f0067a3bdab669f98fe8cb248 100644 (file)
@@ -1919,7 +1919,7 @@ int pa__init(pa_module*m) {
 #ifdef TUNNEL_SINK
 
     if (!(dn = pa_xstrdup(pa_modargs_get_value(ma, "sink_name", NULL))))
-        dn = pa_sprintf_malloc("tunnel.%s", u->server_name);
+        dn = pa_sprintf_malloc("tunnel-sink.%s", u->server_name);
 
     pa_sink_new_data_init(&data);
     data.driver = __FILE__;
@@ -1963,7 +1963,7 @@ int pa__init(pa_module*m) {
 #else
 
     if (!(dn = pa_xstrdup(pa_modargs_get_value(ma, "source_name", NULL))))
-        dn = pa_sprintf_malloc("tunnel.%s", u->server_name);
+        dn = pa_sprintf_malloc("tunnel-source.%s", u->server_name);
 
     pa_source_new_data_init(&data);
     data.driver = __FILE__;