Reset all codec context on gfx graphics reset

This commit is contained in:
akallabeth 2022-10-21 09:32:15 +02:00 committed by David Fort
parent c0e3624a10
commit 819cbcae16

View File

@ -139,6 +139,12 @@ static UINT gdi_ResetGraphics(RdpgfxClientContext* context,
if (!freerdp_settings_get_bool(gdi->context->settings, FreeRDP_DeactivateClientDecoding))
{
if (!freerdp_client_codecs_reset(context->codecs,
freerdp_settings_get_codecs_flags(settings), gdi->width,
gdi->height))
{
goto fail;
}
if (!freerdp_client_codecs_reset(gdi->context->codecs,
freerdp_settings_get_codecs_flags(settings), gdi->width,
gdi->height))