Skip to content

Commit

Permalink
Merge pull request #28 from jsorg71/env1
Browse files Browse the repository at this point in the history
Fix some typos in source, change some logging to match sink
  • Loading branch information
jsorg71 authored Jun 4, 2019
2 parents 3a24c3f + cc2453d commit 48bddf2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/module-xrdp-source.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,19 +193,19 @@ static int data_get(struct userdata *u, pa_memchunk *chunk) {
{
socket_dir = "/tmp/.xrdp";
}
source_socket = getenv("XRDP_PULSE_SINK_SOCKET");
source_socket = getenv("XRDP_PULSE_SOURCE_SOCKET");
if (source_socket == NULL || source_socket[0] == '\0')
{

pa_log("Could not obtain source_socket from environment.");
pa_log_debug("Could not obtain source_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(s.sun_path, bytes,
"%s/xrdp_chansrv_audio_in_socket_%d", socket_dir, u->display_num);
}
else
{
pa_log("Obtained sink_socket from environment.");
pa_log_debug("Obtained source_socket from environment.");
snprintf(s.sun_path, bytes, "%s/%s", socket_dir, source_socket);
}
pa_log_debug("Trying to connect to %s", s.sun_path);
Expand Down

0 comments on commit 48bddf2

Please sign in to comment.