mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-06 11:28:26 +02:00
rdp: Fixed codec initialisations
This patch fixes NSC codec initialisation that was not done (an erronous copy'n paste). The remoteFx context must be resetted when we go through an activation sequence
This commit is contained in:
parent
7d79dcc56d
commit
827358e0bd
1 changed files with 3 additions and 1 deletions
|
|
@ -555,7 +555,7 @@ rdp_peer_context_new(freerdp_peer* client, RdpPeerContext* context)
|
|||
rfx_context_set_pixel_format(context->rfx_context, RDP_PIXEL_FORMAT_B8G8R8A8);
|
||||
|
||||
context->nsc_context = nsc_context_new();
|
||||
rfx_context_set_pixel_format(context->rfx_context, RDP_PIXEL_FORMAT_B8G8R8A8);
|
||||
nsc_context_set_pixel_format(context->nsc_context, RDP_PIXEL_FORMAT_B8G8R8A8);
|
||||
|
||||
context->encode_stream = Stream_New(NULL, 65536);
|
||||
}
|
||||
|
|
@ -703,6 +703,8 @@ xf_peer_post_connect(freerdp_peer* client)
|
|||
static BOOL
|
||||
xf_peer_activate(freerdp_peer *client)
|
||||
{
|
||||
RdpPeerContext *context = (RdpPeerContext *)client->context;
|
||||
rfx_context_reset(context->rfx_context);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue