pulse: use correct macro for audio in/out sockets

This commit is contained in:
Koichiro IWAO 2017-03-22 10:53:31 +09:00 committed by metalefty
parent 2f382d2a16
commit a20d88335f
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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) {