cursor: Map cursor buffers before access

pull/63/head
Andri Yngvason 2022-02-13 18:44:27 +00:00
parent adce5170ee
commit cb282c57c4
1 changed files with 3 additions and 0 deletions

View File

@ -35,6 +35,9 @@ int cursor_encode(struct vec* dst, struct rfb_pixel_format* pixfmt,
int rc = -1;
if (nvnc_fb_map(image) < 0)
return -1;
struct rfb_pixel_format srcfmt = { 0 };
rc = rfb_pixfmt_from_fourcc(&srcfmt, image->fourcc_format);
if (rc < 0)