Browse Source

pulse: use correct macro for audio in/out sockets

pull/1/head
Koichiro IWAO 7 years ago
committed by metalefty
parent
commit
968f95d408
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      module-xrdp-sink.c
  2. +1
    -1
      module-xrdp-source.c

+ 1
- 1
module-xrdp-sink.c View File

@ -308,7 +308,7 @@ static int data_send(struct userdata *u, pa_memchunk *chunk) {
memset(&s, 0, sizeof(s)); memset(&s, 0, sizeof(s));
s.sun_family = AF_UNIX; s.sun_family = AF_UNIX;
bytes = sizeof(s.sun_path) - 1; 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); pa_log_debug("trying to connect to %s", s.sun_path);
if (connect(fd, (struct sockaddr *)&s, if (connect(fd, (struct sockaddr *)&s,
sizeof(struct sockaddr_un)) != 0) { sizeof(struct sockaddr_un)) != 0) {


+ 1
- 1
module-xrdp-source.c View File

@ -186,7 +186,7 @@ static int data_get(struct userdata *u, pa_memchunk *chunk) {
memset(&s, 0, sizeof(s)); memset(&s, 0, sizeof(s));
s.sun_family = AF_UNIX; s.sun_family = AF_UNIX;
bytes = sizeof(s.sun_path) - 1; 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); pa_log_debug("Trying to connect to %s", s.sun_path);
if (connect(fd, (struct sockaddr *) &s, sizeof(struct sockaddr_un)) != 0) { if (connect(fd, (struct sockaddr *) &s, sizeof(struct sockaddr_un)) != 0) {


Loading…
Cancel
Save