From 6422eb57d8b82bef5f788d10560d238ad9cfc189 Mon Sep 17 00:00:00 2001 From: Vic Lee Date: Thu, 13 Jun 2013 13:39:49 +0800 Subject: [PATCH] libfreerdp-core/surface: remove reduncdant frame ack - was done in client. --- libfreerdp/core/surface.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/libfreerdp/core/surface.c b/libfreerdp/core/surface.c index 3de41339f..7d0fb229a 100644 --- a/libfreerdp/core/surface.c +++ b/libfreerdp/core/surface.c @@ -58,15 +58,6 @@ static int update_recv_surfcmd_surface_bits(rdpUpdate* update, wStream* s, UINT3 return 0; } -static void update_send_frame_acknowledge(rdpRdp* rdp, UINT32 frameId) -{ - wStream* s; - - s = rdp_data_pdu_init(rdp); - Stream_Write_UINT32(s, frameId); - rdp_send_data_pdu(rdp, s, DATA_PDU_TYPE_FRAME_ACKNOWLEDGE, rdp->mcs->user_id); -} - static int update_recv_surfcmd_frame_marker(rdpUpdate* update, wStream* s, UINT32 *length) { SURFACE_FRAME_MARKER* marker = &update->surface_frame_marker; @@ -79,13 +70,6 @@ static int update_recv_surfcmd_frame_marker(rdpUpdate* update, wStream* s, UINT3 IFCALL(update->SurfaceFrameMarker, update->context, marker); - if (update->context->rdp->settings->ReceivedCapabilities[CAPSET_TYPE_FRAME_ACKNOWLEDGE] && - (update->context->rdp->settings->FrameAcknowledge > 0) && - (marker->frameAction == SURFACECMD_FRAMEACTION_END)) - { - update_send_frame_acknowledge(update->context->rdp, marker->frameId); - } - *length = 6; return 0;