diff options
author | Koichiro IWAO <meta@vmeta.jp> | 2017-03-22 10:53:31 +0900 |
---|---|---|
committer | metalefty <meta@vmeta.jp> | 2017-03-24 13:49:21 +0900 |
commit | a20d88335f930dc5cb06f7ac4158d07b8ce2e621 (patch) | |
tree | 1d25c183ff9fe4b4e912ec8fe361a70ca3093174 | |
parent | 2f382d2a16b3d6ec571f408567c7a3f49b4b628a (diff) | |
download | xrdp-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.c | 2 | ||||
-rw-r--r-- | sesman/chansrv/pulse/module-xrdp-source.c | 2 |
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) { |