|
@ -200,13 +200,14 @@ static int data_get(struct userdata *u, pa_memchunk *chunk) { |
|
|
pa_log("Could not obtain source_socket from environment."); |
|
|
pa_log("Could not obtain source_socket from environment."); |
|
|
/* usually it doesn't reach here. if the socket name is not given |
|
|
/* usually it doesn't reach here. if the socket name is not given |
|
|
via environment variable, use hardcoded name as fallback */ |
|
|
via environment variable, use hardcoded name as fallback */ |
|
|
snprintf(source_socket, bytes, "xrdp_chansrv_audio_in_socket_%d", u->display_num); |
|
|
|
|
|
|
|
|
snprintf(s.sun_path, bytes, |
|
|
|
|
|
"%s/xrdp_chansrv_audio_in_socket_%d", socket_dir, u->display_num); |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
pa_log("Obtained sink_socket from environment."); |
|
|
pa_log("Obtained sink_socket from environment."); |
|
|
|
|
|
snprintf(s.sun_path, bytes, "%s/%s", socket_dir, source_socket); |
|
|
} |
|
|
} |
|
|
snprintf(s.sun_path, bytes, "%s/%s", socket_dir, source_socket); |
|
|
|
|
|
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) { |
|
|