diff options
author | Junkyeong, Kim <jk0430.kim@samsung.com> | 2021-08-31 19:19:26 +0900 |
---|---|---|
committer | Junkyeong, Kim <jk0430.kim@samsung.com> | 2021-08-31 19:19:43 +0900 |
commit | 04b533f2db91f1537f3f05c454ec81a6fabdb30c (patch) | |
tree | 87d5fdb7947449f12a1a1ee73a4c00e3b3dcecda | |
parent | 09e816532bb88164eed347e0a0a4f4c83b889482 (diff) | |
download | e-mod-tizen-rdp-tizen_6.5.tar.gz e-mod-tizen-rdp-tizen_6.5.tar.bz2 e-mod-tizen-rdp-tizen_6.5.zip |
Fix uninitializing errortizen_6.5.m2_releasesubmit/tizen_6.5/20211028.163101submit/tizen/20210928.090200accepted/tizen/unified/20210928.212639accepted/tizen/6.5/unified/20211028.115128tizen_6.5accepted/tizen_6.5_unified
Change-Id: Id3798b68035c1e2aaf81649e10f432f01cccfce3
Signed-off-by: Junkyeong, Kim <jk0430.kim@samsung.com>
-rw-r--r-- | src/e_mod_rdp.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/e_mod_rdp.c b/src/e_mod_rdp.c index e477be9..051be70 100644 --- a/src/e_mod_rdp.c +++ b/src/e_mod_rdp.c @@ -54,6 +54,7 @@ typedef struct _E_Rdp_Peer_Item E_Rdp_Peer_Item; typedef struct _E_Rdp_Peer_Context E_Rdp_Peer_Context; static E_Rdp_Backend *g_rdp_backend; +static unsigned int refresh_raw_frame_id; struct _E_Rdp_Config { @@ -301,7 +302,11 @@ e_rdp_peer_refresh_raw(pixman_region32_t *region, pixman_image_t *image, freerdp if (!nrects) return; - marker.frameId++; + if (refresh_raw_frame_id == 1024) + refresh_raw_frame_id = 0; + refresh_raw_frame_id++; + + marker.frameId = refresh_raw_frame_id; marker.frameAction = SURFACECMD_FRAMEACTION_BEGIN; update->SurfaceFrameMarker(peer->context, &marker); |