mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04:00
tunnel: Fix automatic names when source/sink_name argument is missing.
Spotted by palmerdabbelt via #894
This commit is contained in:
parent
3e552bdf19
commit
26c64fb54e
1 changed files with 2 additions and 2 deletions
|
|
@ -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__;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue