summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKoichiro IWAO <meta@vmeta.jp>2017-03-22 10:53:31 +0900
committermetalefty <meta@vmeta.jp>2017-03-24 13:49:21 +0900
commita20d88335f930dc5cb06f7ac4158d07b8ce2e621 (patch)
tree1d25c183ff9fe4b4e912ec8fe361a70ca3093174
parent2f382d2a16b3d6ec571f408567c7a3f49b4b628a (diff)
downloadxrdp-proprietary-a20d88335f930dc5cb06f7ac4158d07b8ce2e621.tar.gz
xrdp-proprietary-a20d88335f930dc5cb06f7ac4158d07b8ce2e621.zip
pulse: use correct macro for audio in/out sockets
-rw-r--r--sesman/chansrv/pulse/module-xrdp-sink.c2
-rw-r--r--sesman/chansrv/pulse/module-xrdp-source.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sesman/chansrv/pulse/module-xrdp-sink.c b/sesman/chansrv/pulse/module-xrdp-sink.c
index f7f98b05..067c20f7 100644
--- a/sesman/chansrv/pulse/module-xrdp-sink.c
+++ b/sesman/chansrv/pulse/module-xrdp-sink.c
@@ -308,7 +308,7 @@ static int data_send(struct userdata *u, pa_memchunk *chunk) {
memset(&s, 0, sizeof(s));
s.sun_family = AF_UNIX;
bytes = sizeof(s.sun_path) - 1;
- snprintf(s.sun_path, bytes, CHANSRV_PORT_STR, u->display_num);
+ snprintf(s.sun_path, bytes, CHANSRV_PORT_OUT_STR, u->display_num);
pa_log_debug("trying to connect to %s", s.sun_path);
if (connect(fd, (struct sockaddr *)&s,
sizeof(struct sockaddr_un)) != 0) {
diff --git a/sesman/chansrv/pulse/module-xrdp-source.c b/sesman/chansrv/pulse/module-xrdp-source.c
index 25cc8e4d..a4b2d77a 100644
--- a/sesman/chansrv/pulse/module-xrdp-source.c
+++ b/sesman/chansrv/pulse/module-xrdp-source.c
@@ -186,7 +186,7 @@ static int data_get(struct userdata *u, pa_memchunk *chunk) {
memset(&s, 0, sizeof(s));
s.sun_family = AF_UNIX;
bytes = sizeof(s.sun_path) - 1;
- snprintf(s.sun_path, bytes, CHANSRV_PORT_STR, u->display_num);
+ snprintf(s.sun_path, bytes, CHANSRV_PORT_IN_STR, u->display_num);
pa_log_debug("Trying to connect to %s", s.sun_path);
if (connect(fd, (struct sockaddr *) &s, sizeof(struct sockaddr_un)) != 0) {