diff options
author | speidy <speidy@gmail.com> | 2016-12-10 02:00:16 -0500 |
---|---|---|
committer | speidy <speidy@gmail.com> | 2016-12-10 02:03:20 -0500 |
commit | 4f04801b11d6e712e97fa50941af8f8b0cdc7f59 (patch) | |
tree | 02cdd0485000c8db0394906b1a99f209d8f98d63 /libxrdp | |
parent | 42272c0f1891264af718e8f0a02ebc883f248ed8 (diff) | |
download | xrdp-proprietary-4f04801b11d6e712e97fa50941af8f8b0cdc7f59.tar.gz xrdp-proprietary-4f04801b11d6e712e97fa50941af8f8b0cdc7f59.zip |
o caps: advertise remotefx codec capsets only when supported (RFX mode,
proxy mode)
o xrdp_encoder: do not initialze encoder context for RFX when rfxcodec
is not supported
Diffstat (limited to 'libxrdp')
-rw-r--r-- | libxrdp/xrdp_caps.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libxrdp/xrdp_caps.c b/libxrdp/xrdp_caps.c index 8d5250d5..a7d1ae1a 100644 --- a/libxrdp/xrdp_caps.c +++ b/libxrdp/xrdp_caps.c @@ -831,12 +831,14 @@ xrdp_caps_send_demand_active(struct xrdp_rdp *self) out_uint8(s, 0x01); /* fAllowDynamicFidelity */ out_uint8(s, 0x01); /* fAllowSubsampling */ out_uint8(s, 0x03); /* colorLossLevel */ +#if defined(XRDP_RFXCODEC) || defined(XRDP_NEUTRINORDP) /* remotefx */ codec_caps_count++; out_uint8a(s, XR_CODEC_GUID_REMOTEFX, 16); out_uint8(s, 0); /* codec id, client sets */ out_uint16_le(s, 256); out_uint8s(s, 256); +#endif /* jpeg */ codec_caps_count++; out_uint8a(s, XR_CODEC_GUID_JPEG, 16); |