server: Set the pixel format for the client if it hasn't specified one

pull/13/head
Andri Yngvason 2020-01-19 22:54:52 +00:00
parent 4e919c69ce
commit a80b314eea
1 changed files with 5 additions and 0 deletions

View File

@ -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,