Skip to content

Commit

Permalink
Adding key frame request for ack reset.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nexarian committed Jan 18, 2024
1 parent 8519407 commit 5c46043
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions module/rdpClientCon.c
Original file line number Diff line number Diff line change
Expand Up @@ -2589,6 +2589,11 @@ rdpCapRect(rdpClientCon *clientCon, BoxPtr cap_rect, struct image_data *id)
if (rdpCapture(clientCon, cap_dirty, &rects, &num_rects, id))
{
LLOGLN(10, ("rdpCapRect: num_rects %d", num_rects));
if (clientCon->rect_id_ack == INT_MAX)
{
id->flags = (enum xrdp_encoder_flags)
((int)id->flags | KEY_FRAME_REQUESTED);
}
rdpClientConSendPaintRectShmFd(clientCon->dev, clientCon, id,
cap_dirty, rects, num_rects);
free(rects);
Expand Down

0 comments on commit 5c46043

Please sign in to comment.