Address test failures, min features and g++.

This commit is contained in:
jwc 2020-12-11 01:11:51 +00:00
parent 8953a3322b
commit b0b958a9d4

View File

@ -28,7 +28,9 @@
#include "ms-rdpbcgr.h"
#include "log.h"
#ifdef XRDP_RFXCODEC
#include "rfxcodec_encode.h"
#endif
#define LLOG_LEVEL 1
#define LLOGLN(_level, _args) \
@ -92,7 +94,8 @@ xrdp_wm_create(struct xrdp_process *owner,
self->codec_id = self->client_info->rfx_codec_id;
if (self->codec_id)
{
self->codec_handle = rfxcodec_encode_create(self->screen->width,
self->codec_handle = (struct xrdp_encoder *)rfxcodec_encode_create(
self->screen->width,
self->screen->height,
RFX_FORMAT_BGRA, 0);
if (!self->codec_handle)