projects
/
platform
/
upstream
/
freerdp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
896ba11
)
rdpgfx/client: Update gfx->UnacknowlegedFrame correctly
author
kubistika
<kmizrachi18@gmail.com>
Thu, 6 Jun 2019 07:24:27 +0000
(10:24 +0300)
committer
kubistika
<kmizrachi18@gmail.com>
Thu, 6 Jun 2019 07:24:27 +0000
(10:24 +0300)
channels/rdpgfx/client/rdpgfx_main.c
patch
|
blob
|
history
diff --git
a/channels/rdpgfx/client/rdpgfx_main.c
b/channels/rdpgfx/client/rdpgfx_main.c
index
8bd9559
..
aeb4b36
100644
(file)
--- a/
channels/rdpgfx/client/rdpgfx_main.c
+++ b/
channels/rdpgfx/client/rdpgfx_main.c
@@
-363,6
+363,10
@@
static UINT rdpgfx_send_frame_acknowledge_pdu(RdpgfxClientContext* context,
pdu->totalFramesDecoded); /* totalFramesDecoded (4 bytes) */
error = callback->channel->Write(callback->channel, (UINT32) Stream_Length(s),
Stream_Buffer(s), NULL);
+
+ if (error == CHANNEL_RC_OK) /* frame successfully acked */
+ gfx->UnacknowledgedFrames--;
+
fail:
Stream_Free(s, TRUE);
return error;
@@
-804,7
+808,6
@@
static UINT rdpgfx_recv_end_frame_pdu(RDPGFX_CHANNEL_CALLBACK* callback,
}
}
- gfx->UnacknowledgedFrames--;
gfx->TotalDecodedFrames++;
if (!gfx->sendFrameAcks)