Browse Source

Merge pull request #28 from jsorg71/env1

Fix some typos in source, change some logging to match sink
pull/29/head
jsorg71 5 years ago
committed by GitHub
parent
commit
48bddf21cb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/module-xrdp-source.c

+ 3
- 3
src/module-xrdp-source.c View File

@ -193,11 +193,11 @@ static int data_get(struct userdata *u, pa_memchunk *chunk) {
{ {
socket_dir = "/tmp/.xrdp"; 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') 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 /* 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(s.sun_path, bytes, snprintf(s.sun_path, bytes,
@ -205,7 +205,7 @@ static int data_get(struct userdata *u, pa_memchunk *chunk) {
} }
else 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); 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);


Loading…
Cancel
Save