chansrv: env var to disable rdpsnd record

This commit is contained in:
Jay Sorg 2019-07-08 22:45:58 -07:00
parent 933394c6be
commit 417bb71abf

View File

@ -1563,7 +1563,10 @@ sound_process_input_formats(struct stream *s, int size)
LOG(10, ("sound_process_input_formats: size=%d", size));
g_rdpsnd_can_rec = 1;
if (g_getenv("XRDP_NO_RDPSND_REC") == NULL)
{
g_rdpsnd_can_rec = 1;
}
in_uint8s(s, 8); /* skip 8 bytes */
in_uint16_le(s, num_formats);
in_uint8s(s, 2); /* skip version */