From a80b314eea05064cc1ffc3545cb702351aa6d25c Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Sun, 19 Jan 2020 22:54:52 +0000 Subject: [PATCH] server: Set the pixel format for the client if it hasn't specified one --- src/server.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/server.c b/src/server.c index c445253..c64e6ba 100644 --- a/src/server.c +++ b/src/server.c @@ -694,6 +694,11 @@ void do_client_update_fb(uv_work_t* work) return; } + if (client->fourcc == DRM_FORMAT_INVALID) { + rfb_pixfmt_from_fourcc(&client->pixfmt, fb->fourcc_format); + client->fourcc = fb->fourcc_format; + } + switch (encoding) { case RFB_ENCODING_RAW: raw_encode_frame(&update->frame, &client->pixfmt, fb,