|
|
@ -319,14 +319,14 @@ static int data_send(struct userdata *u, pa_memchunk *chunk) { |
|
|
|
sink_socket = getenv("XRDP_PULSE_SINK_SOCKET"); |
|
|
|
if (sink_socket == NULL || sink_socket[0] == '\0') |
|
|
|
{ |
|
|
|
pa_log("Could not obtain sink_socket from environment."); |
|
|
|
pa_log_debug("Could not obtain sink_socket from environment."); |
|
|
|
/* usually it doesn't reach here. if the socket name is not given |
|
|
|
via environment variable, use hardcoded name as fallback */ |
|
|
|
snprintf(sink_socket, bytes, "xrdp_chansrv_audio_out_socket_%d", u->display_num); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
pa_log("Obtained sink_socket from environment."); |
|
|
|
pa_log_debug("Obtained sink_socket from environment."); |
|
|
|
} |
|
|
|
snprintf(s.sun_path, bytes, "%s/%s", socket_dir, sink_socket); |
|
|
|
pa_log_debug("trying to connect to %s", s.sun_path); |
|
|
|